From 0fca8e3a85d56f1533df0f07d52d7adfc98f391f Mon Sep 17 00:00:00 2001 From: Ramon Roche Date: Thu, 21 Nov 2024 16:12:29 -0800 Subject: [PATCH] ci: build only if push event --- .github/workflows/dev_container.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dev_container.yml b/.github/workflows/dev_container.yml index a62180d4a5..d93a1292c3 100644 --- a/.github/workflows/dev_container.yml +++ b/.github/workflows/dev_container.yml @@ -82,6 +82,7 @@ jobs: - name: Push container image uses: docker/build-push-action@v6 + if: ${{ github.event_name == 'push' }} with: context: Tools/setup tags: ${{ steps.meta.outputs.tags }} @@ -89,6 +90,6 @@ jobs: platforms: | linux/amd64 provenance: mode=max - push: ${{ github.event_name == 'push' }} + push: true cache-from: type=s3,blobs_prefix=cache/${{ github.repository }}/,manifests_prefix=cache/${{ github.repository }}/,region=${{ env.RUNS_ON_AWS_REGION }},bucket=${{ env.RUNS_ON_S3_BUCKET_CACHE }} cache-to: type=s3,blobs_prefix=cache/${{ github.repository }}/,manifests_prefix=cache/${{ github.repository }}/,region=${{ env.RUNS_ON_AWS_REGION }},bucket=${{ env.RUNS_ON_S3_BUCKET_CACHE }},mode=max