Split niri and gnome builds using a matrix workflow, for now.
All checks were successful
Build container image / Build and push image (niri) (pull_request) Successful in 21m36s
Build container image / Build and push image (gnome) (pull_request) Successful in 23m2s

This commit is contained in:
2026-01-29 12:55:54 +09:00
parent 88fc870ab3
commit b35099783b
8 changed files with 283 additions and 121 deletions

View File

@@ -38,6 +38,10 @@ jobs:
name: Build and push image
runs-on: ubuntu-24.04
strategy:
matrix:
variant: [gnome, niri]
permissions:
contents: read
packages: write
@@ -74,9 +78,9 @@ jobs:
# This generates all the tags for your image, you can add custom tags here too!
tags: |
type=sha,enable=${{ github.event_name == 'pull_request' }}
type=raw,value=latest
type=raw,value=${{ env.FEDORA_BASE }}
type=raw,value=${{ env.FEDORA_BASE }}-{{date 'YYYYMMDD'}}
type=raw,value=latest-${{ matrix.variant }}
type=raw,value=${{ env.FEDORA_BASE }}-${{ matrix.variant }}
type=raw,value=${{ env.FEDORA_BASE }}-${{ matrix.variant }}-{{date 'YYYYMMDD'}}
type=ref,event=pr
labels: |
io.artifacthub.package.readme-url=${{ env.README_URL }}
@@ -106,7 +110,7 @@ jobs:
uses: redhat-actions/buildah-build@7a95fa7ee0f02d552a32753e7414641a04307056 # v2
with:
containerfiles: |
./Containerfile
./Containerfile.${{ matrix.variant }}
build-args: |
FEDORA_BASE=${{ env.FEDORA_BASE }}
image: ${{ env.IMAGE_NAME }}