From 9f54dd2690f7987c7e3be835466d4c43ffd56775 Mon Sep 17 00:00:00 2001 From: Pyrofab Date: Sun, 12 May 2024 13:22:57 +0200 Subject: [PATCH] Enable image building in pull requests --- .github/workflows/build-images.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-images.yml b/.github/workflows/build-images.yml index 59a15cd..bc2b25e 100644 --- a/.github/workflows/build-images.yml +++ b/.github/workflows/build-images.yml @@ -1,9 +1,7 @@ name: Build and release images -on: - push: - branches: - - main +on: push + concurrency: build-${{ github.sha }} jobs: @@ -28,6 +26,7 @@ jobs: docker tag ghcr.io/quiltmc/mongodb-s3-backup:latest ghcr.io/quiltmc/mongodb-s3-backup:${{ steps.sha_tag.outputs.tag }} - name: Login to Github Container Registry + if: github.ref == 'refs/heads/main' uses: docker/login-action@v1 with: registry: ghcr.io @@ -35,6 +34,7 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Push images to the registry + if: github.ref == 'refs/heads/main' run: | docker push ghcr.io/quiltmc/postgresql-s3-backup:latest docker push ghcr.io/quiltmc/postgresql-s3-backup:${{ steps.sha_tag.outputs.tag }}