Skip to content

Commit

Permalink
Created new job that uses a label from a forked PR to build an image …
Browse files Browse the repository at this point in the history
…for the Quay.io Kuadrant Operator Registry
  • Loading branch information
dlaw4608 committed Jul 18, 2024
1 parent a4321ae commit af37bec
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-images-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -207,4 +207,4 @@ jobs:
username: ${{ secrets.IMG_REGISTRY_USERNAME }}
password: ${{ secrets.IMG_REGISTRY_TOKEN }}
- name: Print Image URL
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}"
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}"
15 changes: 15 additions & 0 deletions .github/workflows/build-images-pr.yaml
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 }}

0 comments on commit af37bec

Please sign in to comment.