Skip to content

Commit

Permalink
only push PR images to quay if PR label is present
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Gebhardt <[email protected]>
  • Loading branch information
gebhardtr committed Apr 30, 2024
1 parent e786a83 commit e935899
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/Build_Push_Image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ on:
branches:
- main
pull_request:
types:
- labeled
- unlabeled
- opened
- edited
- reopened
- synchronize
branches:
- main

Expand Down Expand Up @@ -108,6 +115,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 e935899

Please sign in to comment.