Skip to content

Commit

Permalink
only push PR images to quay if PR label is present (#963)
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Gebhardt <[email protected]>
  • Loading branch information
gebhardtr authored Jun 3, 2024
1 parent 03c021c commit d071ffa
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/Build_Push_Image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ on:
# push:
# branches:
# - main
# pull_request:
# types:
# - labeled
# - opened
# - edited
# - reopened
# - synchronize
# branches:
# - main

# have the ability to trigger this workflow manually
workflow_dispatch:
Expand Down Expand Up @@ -105,6 +114,9 @@ jobs:
body: ${{ steps.get-comment-body.outputs.body }}

- name: Push To quay.io
if: |
(github.event.label.name == 'pr-deployment' && github.event_name == 'pull_request') ||
github.event.label.name == 'push'
id: push-to-quay
uses: redhat-actions/push-to-registry@v2
with:
Expand Down

0 comments on commit d071ffa

Please sign in to comment.