Skip to content

Commit

Permalink
build: try a different conditional event for pushing images (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
infinitewarp authored Jun 25, 2024
1 parent 84bb957 commit 668cb87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: push image
id: push-to-registry
# Push *only* after the merge. Until I actually need to push PR images, why waste storage?
if: github.event.pull_request.merged == true
if: github.event_name == 'push'
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
Expand All @@ -36,5 +36,5 @@ jobs:
password: ${{ secrets.REGISTRY_PASSWORD }}

- name: Show image url
if: github.event.pull_request.merged == true
if: github.event_name == 'push'
run: echo "Image pushed to ${{ steps.push-to-registry.outputs.registry-paths }}"

0 comments on commit 668cb87

Please sign in to comment.