Skip to content

Commit

Permalink
Only push the new container if the GitHub event is itself push
Browse files Browse the repository at this point in the history
  • Loading branch information
puddly committed May 1, 2024
1 parent 2bf77b5 commit 44b250e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 44b250e

Please sign in to comment.