-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created new job that uses a label from a forked PR to build an image …
…for the Quay.io Kuadrant Operator Registry
- Loading branch information
dlaw4608
committed
Jul 18, 2024
1 parent
a4321ae
commit af37bec
Showing
2 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: PR Conditional Build and Push Image to Quay.io Repo | ||
|
||
on: | ||
pull_request_target: | ||
types: [labeled, opened, synchronize, reopened] | ||
|
||
jobs: | ||
workflow-build: | ||
if: ${{ github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'forked_image_approved') }} | ||
name: Calls build-images-base workflow | ||
uses: ./.github/workflows/build-images-base.yaml | ||
secrets: inherit | ||
with: | ||
kuadrantOperatorVersion: ${{ github.event.pull_request.user.login }}-${{ github.event.pull_request.number }} | ||
kuadrantOperatorTag: ${{ github.event.pull_request.user.login }}-${{ github.event.pull_request.number }} |