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 and test images - Pull Request | ||
on: | ||
pull_request: | ||
paths: | ||
- '**' | ||
permissions: read-all | ||
concurrency: | ||
group: ci-image-${{ github.head_ref || github.ref }}-${{ github.repository }} | ||
cancel-in-progress: true | ||
env: | ||
FORCE_COLOR: 1 | ||
EARTHLY_TOKEN: ${{ secrets.EARTHLY_TOKEN }} | ||
jobs: | ||
core-ubuntu-22-lts: | ||
uses: ./.github/workflows/reusable-build-flavor.yaml | ||
Check failure on line 16 in .github/workflows/image-pr.yaml GitHub Actions / .github/workflows/image-pr.yamlInvalid workflow file
|
||
secrets: inherit | ||
permissions: | ||
contents: write | ||
security-events: write | ||
id-token: write | ||
actions: read | ||
attestations: read | ||
checks: read | ||
deployments: read | ||
discussions: read | ||
issues: read | ||
packages: read | ||
pages: read | ||
pull-requests: read | ||
repository-projects: read | ||
statuses: read | ||
with: | ||
flavor: ubuntu | ||
flavor_release: "22.04" | ||
family: ubuntu | ||
base_image: ubuntu:22.04 | ||
model: generic | ||
variant: core | ||
arch: amd64 | ||
core-ubuntu-24-lts: | ||
uses: ./.github/workflows/reusable-build-flavor.yaml | ||
secrets: inherit | ||
permissions: | ||
contents: write | ||
security-events: write | ||
id-token: write | ||
actions: read | ||
attestations: read | ||
checks: read | ||
deployments: read | ||
discussions: read | ||
issues: read | ||
packages: read | ||
pages: read | ||
pull-requests: read | ||
repository-projects: read | ||
statuses: read | ||
with: | ||
flavor: ubuntu | ||
flavor_release: "24.04" | ||
family: ubuntu | ||
base_image: ubuntu:24.04 | ||
model: generic | ||
variant: core | ||
arch: amd64 | ||
core-ubuntu-24-10: | ||
uses: ./.github/workflows/reusable-build-flavor.yaml | ||
secrets: inherit | ||
permissions: | ||
contents: write | ||
security-events: write | ||
id-token: write | ||
actions: read | ||
attestations: read | ||
checks: read | ||
deployments: read | ||
discussions: read | ||
issues: read | ||
packages: read | ||
pages: read | ||
pull-requests: read | ||
repository-projects: read | ||
statuses: read | ||
with: | ||
flavor: ubuntu | ||
flavor_release: "24.10" | ||
family: ubuntu | ||
base_image: ubuntu:24.10 | ||
model: generic | ||
variant: core | ||
arch: amd64 | ||
install: | ||
uses: ./.github/workflows/reusable-install-test.yaml | ||
secrets: inherit | ||
with: | ||
flavor: ubuntu | ||
flavor_release: "24.04" | ||
secureboot: false | ||
needs: | ||
- core-ubuntu-24-lts | ||
install-target: | ||
secrets: inherit | ||
uses: ./.github/workflows/reusable-install-test-target.yaml | ||
with: | ||
flavor: ubuntu | ||
flavor_release: "24.04" | ||
secureboot: false | ||
needs: | ||
- core-ubuntu-24-lts | ||
install-secureboot: | ||
uses: ./.github/workflows/reusable-install-test.yaml | ||
secrets: inherit | ||
with: | ||
flavor: ubuntu | ||
flavor_release: "24.04" | ||
secureboot: true | ||
needs: | ||
- core-ubuntu-24-lts | ||
zfs: | ||
uses: ./.github/workflows/reusable-zfs-test.yaml | ||
secrets: inherit | ||
with: | ||
flavor: ubuntu | ||
flavor_release: "22.04" | ||
needs: | ||
- core-ubuntu-22-lts | ||
acceptance: | ||
uses: ./.github/workflows/reusable-qemu-acceptance-test.yaml | ||
secrets: inherit | ||
with: | ||
flavor: ubuntu | ||
flavor_release: "24.04" | ||
needs: | ||
- core-ubuntu-24-lts | ||
bundles: | ||
uses: ./.github/workflows/reusable-qemu-bundles-test.yaml | ||
secrets: inherit | ||
with: | ||
flavor: ubuntu | ||
flavor_release: "24.04" | ||
needs: | ||
- core-ubuntu-24-lts | ||
reset: | ||
uses: ./.github/workflows/reusable-qemu-reset-test.yaml | ||
secrets: inherit | ||
with: | ||
flavor: ubuntu | ||
flavor_release: "24.04" | ||
needs: | ||
- core-ubuntu-24-lts | ||
netboot: | ||
uses: ./.github/workflows/reusable-qemu-netboot-test.yaml | ||
secrets: inherit | ||
with: | ||
flavor: ubuntu | ||
flavor_release: "24.04" | ||
family: ubuntu | ||
base_image: ubuntu:24.04 | ||
model: generic | ||
variant: core | ||
needs: | ||
- core-ubuntu-24-lts | ||
upgrade: | ||
uses: ./.github/workflows/reusable-upgrade-with-cli-test.yaml | ||
secrets: inherit | ||
with: | ||
flavor: ubuntu | ||
flavor_release: "24.04" | ||
needs: | ||
- core-ubuntu-24-lts | ||
upgrade-latest: | ||
uses: ./.github/workflows/reusable-upgrade-latest-test.yaml | ||
secrets: inherit | ||
with: | ||
flavor: ubuntu | ||
flavor_release: "24.04" | ||
family: "ubuntu" | ||
# release_matcher: "23.10" # introduced so tests can be green while we wait for the kairos release with the latest flavor release | ||
needs: | ||
- core-ubuntu-24-lts | ||
custom-partitioning: | ||
secrets: inherit | ||
uses: ./.github/workflows/reusable-custom-partitioning-test.yaml | ||
permissions: | ||
id-token: write # OIDC support | ||
contents: write | ||
security-events: write | ||
actions: read | ||
attestations: read | ||
checks: read | ||
deployments: read | ||
discussions: read | ||
issues: read | ||
packages: read | ||
pages: read | ||
pull-requests: read | ||
repository-projects: read | ||
statuses: read | ||
with: | ||
flavor: ${{ matrix.flavor }} | ||
flavor_release: ${{ matrix.flavorRelease }} | ||
needs: | ||
- core-ubuntu-24-lts | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
flavor: | ||
- "ubuntu" | ||
flavorRelease: | ||
- "24.04" | ||
encryption: | ||
secrets: inherit | ||
uses: ./.github/workflows/reusable-encryption-test.yaml | ||
with: | ||
flavor: ubuntu | ||
flavor_release: "24.04" | ||
label: ${{ matrix.label }} | ||
needs: | ||
- core-ubuntu-24-lts | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
label: | ||
- "local-encryption" | ||
- "remote-auto" | ||
- "remote-static" | ||
- "remote-https-pinned" | ||
- "remote-https-bad-cert" |