Skip to content

Commit

Permalink
another matrix try
Browse files Browse the repository at this point in the history
  • Loading branch information
m2Giles committed Nov 1, 2024
1 parent 3c3daf1 commit d50912b
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-image-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
name: Build Beta Images
uses: ./.github/workflows/reusable-build.yml
secrets: inherit
strategy:
matrix:
base_name: [bluefin, aurora]
with:
base_name: ${{ matrix.base_name }}
fedora_version: beta

4 changes: 4 additions & 0 deletions .github/workflows/build-image-gts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ jobs:
name: Build GTS Images
uses: ./.github/workflows/reusable-build.yml
secrets: inherit
strategy:
matrix:
base_name: [bluefin]
with:
base_name: ${{ matrix.base_name }}
fedora_version: gts

4 changes: 4 additions & 0 deletions .github/workflows/build-image-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,9 @@ jobs:
name: Build Latest Images
uses: ./.github/workflows/reusable-build.yml
secrets: inherit
strategy:
matrix:
base_name: [bluefin, aurora]
with:
base_name: ${{ matrix.base_name }}
fedora_version: latest
4 changes: 4 additions & 0 deletions .github/workflows/build-image-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ jobs:
name: Build Stable Images
uses: ./.github/workflows/reusable-build.yml
secrets: inherit
strategy:
matrix:
base_name: [bluefin, aurora]
with:
base_name: ${{ matrix.base_name }}
fedora_version: stable

12 changes: 7 additions & 5 deletions .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Reusable Build and Push
on:
workflow_call:
inputs:
base_name:
description: "The Brand Name: bluefin or aurora"
required: true
type: string
fedora_version:
description: "The Fedora Version: gts, stable, or latest"
required: true
Expand All @@ -14,7 +18,7 @@ env:
IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }}

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}-${{ inputs.fedora_version }}
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}-${{ inputs.base_name}}-${{ inputs.fedora_version }}
cancel-in-progress: true

jobs:
Expand All @@ -33,10 +37,8 @@ jobs:
- hwe
- hwe-nvidia
base_name:
- bluefin
- bluefin-dx
- aurora
- aurora-dx
- ${{ inputs.base_name }}
- ${{ inputs.base_name }}-dx
fedora_version:
- ${{ inputs.fedora_version }}
exclude:
Expand Down

0 comments on commit d50912b

Please sign in to comment.