Merge pull request #200 from konflux-ci/konflux/mintmaker/main/regist… #18
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
name: Build Multi Platform Runner image | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- multi-platform-runner/Dockerfile | |
pull_request: | |
branches: | |
- main | |
paths: | |
- multi-platform-runner/Dockerfile | |
env: | |
REGISTRY: quay.io/redhat-appstudio | |
IMAGE_NAME: multi-platform-runner | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Build Image | |
id: build-image | |
uses: redhat-actions/buildah-build@v2 | |
with: | |
image: ${{ env.IMAGE_NAME }} | |
tags: ${{ github.sha }} | |
context: . | |
containerfiles: | | |
./multi-platform-runner/Dockerfile | |
- name: Push to Quay | |
if: github.event_name == 'push' # don't push image from PR | |
uses: redhat-actions/push-to-registry@v2 | |
with: | |
image: ${{ steps.build-image.outputs.image }} | |
tags: ${{ steps.build-image.outputs.tags }} | |
registry: ${{ env.REGISTRY }} | |
username: ${{ secrets.QUAY_USERNAME }} | |
password: ${{ secrets.QUAY_PASSWORD }} |