name: Arbeitszeitmessung Deploy run-name: ${{ gitea.actor }} is building and deploying arbeitszeitmesssung on: workflow_run: workflows: ["Tests"] types: - completed jobs: build: name: Build Go Image and Upload if: | github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'push' && startsWith(github.event.workflow_run.head_branch, 'main') && startsWith(github.event.workflow_run.head_commit.ref, 'refs/tags/') runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 - name: Login to GitHub Container Registry uses: docker/login-action@v3 with: registry: git.letsstein.de username: ${{ gitea.actor }} password: ${{ secrets.REGISTRY_TOKEN }} - name: Set up QEMU uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Build and push uses: docker/build-push-action@v6 with: platforms: linux/amd64,linux/arm64 push: true context: Backend tags: | git.letsstein.de/tom/arbeitszeitmessung:latest git.letsstein.de/tom/arbeitszeitmessung:${{ github.ref_name }}