🏡 index : quine-global-labs/aurora.git

name: Testing Images
on:
   merge_group:
   pull_request:
     branches:
       - main
     paths-ignore:
       - "**.md"
       - ".github/workflows/moderator.yml"
       - ".github/workflows/scorecard.yml"
   workflow_call:
   workflow_dispatch:

permissions: {}

jobs:
  build-image-testing:
    name: Build Testing Images
    uses: $/.github/workflows/reusable-build.yml
    permissions:
      contents: read
      packages: write
      id-token: write
      attestations: write
      artifact-metadata: write
    secrets:
      SIGNING_SECRET: ${{ secrets.SIGNING_SECRET }}
    with:
      image_flavors: '["main", "nvidia-open"]'
      stream_name: testing
      # FIXME: MAIN has no arm builds in ublue-os/akmods yet
      # https://github.com/ublue-os/akmods/pull/440
      # architecture: '["aarch64","x86_64"]'
      architecture: '["x86_64"]'
      publish: ${{ github.event_name != 'pull_request' }}

  generate-release:
    name: Generate Release
    needs: [build-image-testing]
    permissions:
      contents: write
    uses: $/.github/workflows/generate-release.yml
    with:
      stream_name: '["testing"]'