Skip to content

Commit

Permalink
Sure! Here's a concise version of the commit message:
Browse files Browse the repository at this point in the history
---

Fix PR build and push for forks (Closes Kuadrant#241)
  • Loading branch information
dlaw4608 committed Jul 17, 2024
1 parent d54846c commit 483f3f2
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 168 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build-images-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ on:
description: Authorino Operator bundle version
default: latest
type: string
limitadorOperatorVersion:
limitadorperatorVersion:
description: Limitador Operator bundle version
default: latest
type: string
Expand Down Expand Up @@ -208,3 +208,5 @@ jobs:
password: ${{ secrets.IMG_REGISTRY_TOKEN }}
- name: Print Image URL
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}"


36 changes: 36 additions & 0 deletions .github/workflows/build-images-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: PR Conditional Build and Push Image to Quay.io Repo

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

jobs:
pr-conditional-build:
name: PR Conditional Build and Push Image to Quay.io repo
runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'forked_image_approved') }}
steps:
- name: Check out the repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to Quay.io
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}

- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: |
quay.io/dlawton/kuadrant_operator:latest
quay.io/dlawton/kuadrant_operator:${{ github.sha }}
167 changes: 0 additions & 167 deletions hack/topology_setup.sh

This file was deleted.

0 comments on commit 483f3f2

Please sign in to comment.