Reconmap/web-client

View on GitHub
.github/workflows/build-deployment.yml

Summary

Maintainability
Test Coverage
name: Build and deployment workflow

on:
    push:
        branches:
            - master

jobs:
    version-build-push:
        runs-on: ubuntu-latest
        steps:
            - name: Fix folder permissions
              run: sudo chown -R $USER:$USER ${{ github.workspace }}
            - uses: actions/checkout@v3
              with:
                  token: ${{ secrets.GITHUB_TOKEN }}
            - name: Login to Quay
              run: echo "${{ secrets.QUAY_ROBOT_TOKEN }}" | docker login -u "${{ secrets.QUAY_ROBOT_USERNAME }}" --password-stdin quay.io
            - name: Set Git credentials
              run: |
                  git config --global user.name github-actions
                  git config --global user.email github-actions@github.com
            - name: Prepare
              run: make
            - name: Increase version
              run: |
                  make version-increase
                  git push
            - name: Run tests
              run: make tests-ci
            - name: Build
              run: make build
            - name: Push
              run: make push