diff --git a/.github/workflows/build-rpms.yml b/.github/workflows/build-rpms.yml index f053e7f..532a743 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: @@ -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 @@ -26,9 +38,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 }}