From 20489b1723dd3ddbd48e6a2979ba4dc3cbd4f5e6 Mon Sep 17 00:00:00 2001 From: puddly <32534428+puddly@users.noreply.github.com> Date: Wed, 1 May 2024 09:26:58 -0400 Subject: [PATCH] Only push the new container if the GitHub event is itself `push` --- .github/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 221e834e..2cf071f9 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -58,7 +58,7 @@ jobs: tags: ${{ needs.get-build-container-names.outputs.container_name }} cache-from: ${{ needs.get-build-container-names.outputs.image_name }}:cache-${{ needs.get-build-container-names.outputs.tag_name }} cache-to: ${{ needs.get-build-container-names.outputs.image_name }}:cache-${{ needs.get-build-container-names.outputs.tag_name }} - push: true + push: ${{ github.event_name == 'push' }} get-build-container: name: Get the image name of the build container to use