From e7b94a0ce27c1662e60ec6e449a6fa9500a4eb80 Mon Sep 17 00:00:00 2001 From: Guillaume Plourde Date: Wed, 19 Jun 2024 16:06:49 -0400 Subject: [PATCH 1/4] Update build-rpms.yml --- .github/workflows/build-rpms.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-rpms.yml b/.github/workflows/build-rpms.yml index f053e7f..1cf1a1f 100644 --- a/.github/workflows/build-rpms.yml +++ b/.github/workflows/build-rpms.yml @@ -1,4 +1,4 @@ -name: Build Silverblue container +name: Build nvidia driver on: workflow_call: env: From c60c7087651b441b68c901170b0c0bf69940e668 Mon Sep 17 00:00:00 2001 From: Guillaume Plourde Date: Wed, 19 Jun 2024 16:10:39 -0400 Subject: [PATCH 2/4] Update build-rpms.yml --- .github/workflows/build-rpms.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-rpms.yml b/.github/workflows/build-rpms.yml index 1cf1a1f..ede039a 100644 --- a/.github/workflows/build-rpms.yml +++ b/.github/workflows/build-rpms.yml @@ -26,9 +26,9 @@ jobs: containerfiles: | ./Containerfile image: | - ${{ env.IMAGE_NAME }} + quay.io/fedora-ostree-desktops/silverblue tags: | - ${{ steps.generate-tags.outputs.alias_tags }} + latest build-args: | BASE_IMAGE=${{ env.BASE_IMAGE }} FEDORA_MAJOR_VERSION=${{ env.FEDORA_MAJOR_VERSION }} From 295bcc371d320410fcad05a8d08ca4a7accb8b87 Mon Sep 17 00:00:00 2001 From: Guillaume Plourde Date: Wed, 19 Jun 2024 16:54:23 -0400 Subject: [PATCH 3/4] Update build-rpms.yml --- .github/workflows/build-rpms.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-rpms.yml b/.github/workflows/build-rpms.yml index ede039a..532a743 100644 --- a/.github/workflows/build-rpms.yml +++ b/.github/workflows/build-rpms.yml @@ -15,9 +15,21 @@ jobs: packages: write id-token: write strategy: + matrix: + version: [40] fail-fast: false - steps: + steps: + # Checkout push-to-registry action GitHub repository + - name: Checkout Push to Registry action + uses: actions/checkout@v4 + + - name: Variables + run: | + REPO=${{ github.repository }} + echo "IMAGE_NAME=nvidia-${REPO##*/}" >> $GITHUB_ENV + echo "FEDORA_MAJOR_VERSION=${{ matrix.version }}" >> $GITHUB_ENV + # Build image using Buildah action - name: Build Image id: build_image From 06f2ae3c85282525f6258eb1c018b2a29b96c553 Mon Sep 17 00:00:00 2001 From: Guillaume Plourde Date: Wed, 19 Jun 2024 17:07:37 -0400 Subject: [PATCH 4/4] Update Containerfile --- Containerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Containerfile b/Containerfile index 53c5a0f..eefb620 100644 --- a/Containerfile +++ b/Containerfile @@ -10,5 +10,5 @@ FROM ${BASE_IMAGE}:${FEDORA_MAJOR_VERSION} as nvidia-builder ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION}" ARG NVIDIA_MAJOR_VERSION="${NVIDIA_MAJOR_VERSION}" COPY scripts /tmp/ -RUN /tmp/scripts/build.sh +RUN /tmp/build.sh # End