Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Build images

Build images #229

Workflow file for this run

name: Build images
on:
push:
branches: [main]
schedule:
- cron: "0 0 * * *"
pull_request:
workflow_dispatch:
env:
REGISTRY: ghcr.io
jobs:
akmods:
name: Akmods Layer
permissions:
contents: read
id-token: write
packages: write
uses: ./.github/workflows/build-image.yaml
with:
image_name: akmods
containerfile: ./akmods/Containerfile
context: ./akmods
extra_tags: |
type=raw,value=39-550
build_args: |
FEDORA_VERSION=39
NVIDIA_VERSION=550
secrets:
akmods_key: ${{ secrets.AKMODS_KEY }}
base:
name: Base Images
needs: [config]
permissions:
contents: read
id-token: write
packages: write
strategy:
fail-fast: false
matrix:
include:
- image_name: getchblue
fedora_version: 39
image_flavor: silverblue
uses: ./.github/workflows/build-image.yaml
with:
image_name: ${{ matrix.image_name }}
containerfile: ./base/Containerfile
context: ./base
extra_tags: |
type=raw,value=${{ matrix.fedora_version }}
build_args: |
FEDORA_VERSION=${{ matrix.fedora_version }}
IMAGE_FLAVOR=${{ matrix.image_flavor }}
config:
name: Config layers
permissions:
contents: read
id-token: write
packages: write
strategy:
fail-fast: false
matrix:
fedora_version: [39]
uses: ./.github/workflows/build-image.yaml
with:
image_name: config
containerfile: ./config/Containerfile
context: ./config
extra_tags: |
type=raw,value=${{ matrix.fedora_version }}
build_args: |
FEDORA_VERSION=${{ matrix.fedora_version }}
nvidia:
name: NVIDIA Images
needs: [akmods, base]
permissions:
contents: read
id-token: write
packages: write
strategy:
fail-fast: false
matrix:
include:
- image_flavor: getchblue
fedora_version: 39
nvidia_version: 550
uses: ./.github/workflows/build-image.yaml
with:
image_name: ${{ matrix.image_flavor }}-nvidia
containerfile: ./nvidia/Containerfile
context: ./nvidia
extra_tags: |
type=raw,value=${{ matrix.fedora_version }}-${{ matrix.nvidia_version }}
build_args: |
FEDORA_VERSION=${{ matrix.fedora_version }}
IMAGE_FLAVOR=${{ matrix.image_flavor }}
NVIDIA_VERSION=${{ matrix.nvidia_version }}