Skip to content

Commit 6c6e89e

Browse files
committed
feat: add Fedora 44 kernel builds via matrix
1 parent fcd9ba8 commit 6c6e89e

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/fedora.yaml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ concurrency:
2222

2323
jobs:
2424
build-rpm:
25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
fedora_version: [43, 44]
2529
runs-on: ubuntu-latest
2630

2731
permissions:
@@ -32,7 +36,7 @@ jobs:
3236
artifact-metadata: write
3337

3438
container:
35-
image: fedora:latest
39+
image: fedora:${{ matrix.fedora_version }}
3640
volumes:
3741
- /usr:/usr-host
3842
- /opt:/opt-host
@@ -194,21 +198,21 @@ jobs:
194198
cp "$TOPDIR"/RPMS/x86_64/*.rpm /tmp/rpms/ 2>/dev/null || true
195199
cp "$TOPDIR"/RPMS/noarch/*.rpm /tmp/rpms/ 2>/dev/null || true
196200
cd /tmp/rpms
197-
DIGEST=$(oras push --format json "${REPO}:${VERSION}" ./*.rpm | jq -r '.digest')
201+
DIGEST=$(oras push --format json "${REPO}:${VERSION}-fc${{ matrix.fedora_version }}" ./*.rpm | jq -r '.digest')
198202
if [ -z "$DIGEST" ]; then
199203
echo "::error::Failed to capture digest from oras push"
200204
exit 1
201205
fi
202-
oras tag "${REPO}:${VERSION}" latest
206+
oras tag "${REPO}:${VERSION}-fc${{ matrix.fedora_version }}" latest-fc${{ matrix.fedora_version }}
203207
echo "digest=$DIGEST" >> "$GITHUB_OUTPUT"
204208
205209
- name: Sign artifacts
206210
if: startsWith(github.ref, 'refs/tags/')
207211
run: |
208212
VERSION="${{ steps.version.outputs.ogc_version }}.${{ steps.buildnum.outputs.build_num }}"
209213
REPO="${{ env.OCI_REPO }}"
210-
cosign sign --yes "${REPO}:${VERSION}"
211-
cosign sign --yes "${REPO}:latest"
214+
cosign sign --yes "${REPO}:${VERSION}-fc${{ matrix.fedora_version }}"
215+
cosign sign --yes "${REPO}:latest-fc${{ matrix.fedora_version }}"
212216
213217
- name: Attest build provenance
214218
if: startsWith(github.ref, 'refs/tags/')
@@ -226,4 +230,4 @@ jobs:
226230
cosign verify \
227231
--certificate-identity-regexp=".*" \
228232
--certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
229-
"${REPO}:${VERSION}"
233+
"${REPO}:${VERSION}-fc${{ matrix.fedora_version }}"

0 commit comments

Comments
 (0)