Skip to content

Commit 2bbdf25

Browse files
authored
feat: update image label with actual kernel version (#924)
Sets a variable with for the specific kernel being installed and uses that both to select the desired AKMODS layer and set the ostree.linux image label as appropriate.
1 parent 3472b9b commit 2bbdf25

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ on:
3030
workflow_dispatch:
3131
env:
3232
IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }}
33+
KERNEL_VERSION: 6.7.9-207.fsync
3334

3435
concurrency:
3536
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
@@ -84,7 +85,7 @@ jobs:
8485

8586
- name: Matrix Variables
8687
run: |
87-
echo "AKMODS_FLAVOR=6.7.9-207.fsync" >> $GITHUB_ENV
88+
echo "AKMODS_FLAVOR=${{ env.KERNEL_VERSION }}" >> $GITHUB_ENV
8889
echo "BASE_IMAGE_NAME=${{ matrix.base_image_name }}" >> $GITHUB_ENV
8990
9091
if [[ "${{ matrix.base_image_flavor }}" == "framework" ]]; then
@@ -205,6 +206,7 @@ jobs:
205206
images: |
206207
${{ env.IMAGE_NAME }}
207208
labels: |
209+
ostree.linux=${{ env.KERNEL_VERSION }}.fc${{ matrix.major_version }}.x86_64
208210
org.opencontainers.image.title=${{ env.IMAGE_NAME }}
209211
org.opencontainers.image.version=${{ steps.labels.outputs.VERSION }}
210212
org.opencontainers.image.description=Bazzite is an OCI image that serves as an alternative operating system for the Steam Deck, and a ready-to-game SteamOS-like for desktop computers, living room home theater PCs, and numerous other handheld PCs.

0 commit comments

Comments
 (0)