Skip to content

Commit

Permalink
split container setup and rpm build
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume committed Jun 20, 2024
2 parents 099d22a + 06f2ae3 commit 2a61a0b
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/build-rpms.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Silverblue container
name: Build nvidia driver
on:
workflow_call:
env:
Expand All @@ -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
Expand All @@ -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 }}
Expand Down

0 comments on commit 2a61a0b

Please sign in to comment.