Skip to content

Commit

Permalink
Fixed Merge Conflicts
Browse files Browse the repository at this point in the history
Signed-off-by: dlaw4608 <dlawton@redhat.com>
  • Loading branch information
dlaw4608 committed Aug 15, 2024
1 parent ec17659 commit a884150
Show file tree
Hide file tree
Showing 2 changed files with 30 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 @@ -194,4 +194,4 @@ jobs:
tags: |
${{ env.IMG_REGISTRY_HOST }}/${{ env.IMG_REGISTRY_ORG }}/${{ env.OPERATOR_NAME }}-catalog:${{ env.IMG_TAGS }}
- name: Print Catalog Image URL
run: echo "Catalog image pushed to ${{ env.IMG_REGISTRY_HOST }}/${{ env.IMG_REGISTRY_ORG }}/${{ env.OPERATOR_NAME }}-catalog:${{ env.IMG_TAGS }}"
run: echo "Catalog image pushed to ${{ env.IMG_REGISTRY_HOST }}/${{ env.IMG_REGISTRY_ORG }}/${{ env.OPERATOR_NAME }}-catalog:${{ env.IMG_TAGS }}"
29 changes: 29 additions & 0 deletions .github/workflows/build-images-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: PR Conditional Build and Push Image to Quay.io Repo

on:
pull_request_target:
types: [labeled, opened, synchronize, reopened]

concurrency:
group: pr-conditional-build-${{ github.event.pull_request.number }}
cancel-in-progress: true

jobs:
workflow-build:
if: ${{ 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 }}

remove-label:
runs-on: ubuntu-latest
needs: workflow-build
steps:
- name: Remove forked_image_approved label after workflow is triggered
- uses: actions-ecosystem/action-remove-labels@v1
with:
labels: forked_image_approved
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a884150

Please sign in to comment.