forked from Kuadrant/kuadrant-operator
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sure! Here's a concise version of the commit message:
--- Fix PR build and push for forks (Closes Kuadrant#241)
- Loading branch information
dlaw4608
committed
Jul 17, 2024
1 parent
d54846c
commit 483f3f2
Showing
3 changed files
with
39 additions
and
168 deletions.
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,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 }} |
This file was deleted.
Oops, something went wrong.