ci: pass the qemu tests only the secrets they use #1671
Workflow file for this run
This file contains hidden or 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 ARM images (PR)' | |
| on: | |
| pull_request: | |
| permissions: | |
| contents: write | |
| security-events: write | |
| id-token: write | |
| actions: read | |
| concurrency: | |
| group: ci-pr-arm64-${{ github.head_ref || github.ref }}-${{ github.repository }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: ${{ matrix.image_name }} | |
| uses: kairos-io/kairos-factory-action/.github/workflows/reusable-factory.yaml@8952c3a5f4f6255cc63af88cb3637a9684970c8d # v1.1.3 | |
| secrets: | |
| registry_username: ${{ secrets.QUAY_USERNAME }} | |
| registry_password: ${{ secrets.QUAY_PASSWORD }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - image_name: "hadron" | |
| model: "rpi4" | |
| base_image: "ghcr.io/kairos-io/hadron:v0.5.1" | |
| cleanup: false | |
| grype: true | |
| custom_job_name_format: "core-arm64-rpi4" | |
| - image_name: "hadron" | |
| model: "rpi3" | |
| base_image: "ghcr.io/kairos-io/hadron:v0.5.1" | |
| cleanup: false | |
| grype: true | |
| custom_job_name_format: "core-arm64-rpi3" | |
| - image_name: "hadron" | |
| model: "generic" | |
| base_image: "ghcr.io/kairos-io/hadron:v0.5.1" | |
| cleanup: false | |
| grype: true | |
| custom_job_name_format: "core-arm64-generic" | |
| - image_name: "ubuntu:22.04" | |
| model: "nvidia-jetson-agx-orin" | |
| base_image: "ubuntu:22.04" | |
| cleanup: true | |
| grype: false | |
| custom_job_name_format: "" | |
| - image_name: "ubuntu:22.04" | |
| model: "nvidia-jetson-orin-nx" | |
| base_image: "ubuntu:22.04" | |
| cleanup: true | |
| grype: false # too many vulns under the L4T rootfs | |
| custom_job_name_format: "" | |
| with: | |
| auroraboot_version: "v0.26.2" | |
| dockerfile_path: "images/Dockerfile" | |
| base_image: ${{ matrix.base_image }} | |
| model: ${{ matrix.model }} | |
| arch: "arm64" | |
| version: "auto" | |
| raw: ${{ matrix.model == 'rpi3' || matrix.model == 'rpi4' }} # only produce raw images for rpi3 and rpi4 | |
| grype: ${{ matrix.grype }} | |
| # Report-only: the scan still runs and reports, but criticals from the | |
| # upstream base image must not block PRs. Mirrors master / release builds. | |
| security_scan_mode: "report-only" | |
| registry_domain: "quay.io" | |
| registry_namespace: "kairos" | |
| registry_repository: "ci-temp-images" | |
| custom_tag_format: "$FLAVOR-$FLAVOR_RELEASE-$VARIANT-$ARCH-$MODEL-$COMMIT_SHA" | |
| custom_artifact_format: "kairos-$FLAVOR-$FLAVOR_RELEASE-$VARIANT-$ARCH-$MODEL" | |
| custom_job_name_format: ${{ matrix.custom_job_name_format }} | |
| image_labels: "quay.expires-after=6h" | |
| summary_artifacts: true | |
| cleanup: ${{ matrix.cleanup }} |