chore: add crc-builder spec #6
Workflow file for this run
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: oci-builds | |
on: | |
push: | |
branches: [ main ] | |
tags: | |
- '*' | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build-oci: | |
name: build-oci | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Build image for PR | |
if: ${{ github.event_name == 'pull_request' }} | |
shell: bash | |
run: | | |
SNC_RUNNER=ghcr.io/crc-org/ci-definitions SNC_RUNNER_V=pr-${{ github.event.number }} make oci-build | |
build-multiarch-oci: | |
name: build-multiarch-oci | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Prepare runner | |
shell: bash | |
run: | | |
sudo apt-get install -y qemu-system qemu-user-static | |
- name: Build image for PR | |
if: ${{ github.event_name == 'pull_request' }} | |
shell: bash | |
run: | | |
CRC_BUILDER=ghcr.io/crc-org/ci-definitions CRC_BUILDER_V=pr-${{ github.event.number }} make oci-multiarch-build | |
- name: Setup tmate session | |
uses: mxschmitt/action-tmate@v3 | |