diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e166311..40e33fd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,7 +11,6 @@ on: paths-ignore: - '**/README.md' env: - IMAGE_NAME: nvidia IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }} jobs: @@ -25,6 +24,7 @@ jobs: strategy: fail-fast: false matrix: + image_name: [silverblue, kinoite] major_version: [37] driver_version: [525] include: @@ -75,12 +75,13 @@ jobs: with: containerfiles: | ./Containerfile - image: ${{ env.IMAGE_NAME }} + image: ${{ matrix.image_name }} tags: | ${{ steps.generate-tags.outputs.alias_tags }} ${{ steps.generate-tags.outputs.date }} ${{ steps.generate-tags.outputs.sha_short }} build-args: | + IMAGE_NAME=${{ matrix.image_name }} FEDORA_MAJOR_VERSION=${{ matrix.major_version }} NVIDIA_MAJOR_VERSION=${{ matrix.driver_version }} oci: true @@ -130,7 +131,7 @@ jobs: - name: Sign container image run: | - cosign sign --key cosign.key ${{ steps.registry_case.outputs.lowercase }}/${{ env.IMAGE_NAME }}@${TAGS} + cosign sign --key cosign.key ${{ steps.registry_case.outputs.lowercase }}/${{ matrix.image_name }}@${TAGS} env: TAGS: ${{ steps.push.outputs.digest }} COSIGN_EXPERIMENTAL: false diff --git a/Containerfile b/Containerfile index 043b582..a0debda 100644 --- a/Containerfile +++ b/Containerfile @@ -1,11 +1,12 @@ -ARG BASE_IMAGE='quay.io/fedora-ostree-desktops/silverblue' +ARG IMAGE_NAME="${IMAGE_NAME:-silverblue}" +ARG BASE_IMAGE="quay.io/fedora-ostree-desktops/${IMAGE_NAME}" ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION:-37}" FROM ${BASE_IMAGE}:${FEDORA_MAJOR_VERSION} AS builder ARG NVIDIA_MAJOR_VERSION="${NVIDIA_MAJOR_VERSION:-525}" -RUN sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/fedora-{cisco-openh264,modular,updates-modular,updates-archive}.repo +RUN sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/fedora-{cisco-openh264,modular,updates-modular}.repo RUN rpm-ostree install \ https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm \