Skip to content
This repository has been archived by the owner on Jan 4, 2025. It is now read-only.

fix: use ref instead of base_ref #6

fix: use ref instead of base_ref

fix: use ref instead of base_ref #6

Workflow file for this run

name: Test container workflow
on:
push:
branches:
- main
pull_request:
jobs:
run-main-build:
name: Build uBlue-OS Main
continue-on-error: false
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
fail-fast: false
max-parallel: 5
matrix:
image_name:
- silverblue
- kinoite
- sericea
- onyx
- base
- lxqt
- lazurite
- mate
- vauxite
major_version:
- 39
image_variant:
- nokmods
include:
- major_version: 39
support: latest
#- major_version: 38
# support: gts
exclude:
# There is no Fedora 39 version of lxqt as it was replaced by lazurite
- image_name: lxqt
major_version: 39
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build image
uses: ./
with:
image_name: ${{ matrix.image_name }}
image_variant: ${{ matrix.image_variant }}
version: ${{ matrix.major_version }}
support: ${{ matrix.support }}
signing_key: ${{ secrets.SIGNING_SECRET }}
target: ${{ matrix.image_variant }}
container_registry: ghcr.io/${{ github.repository }}
container_repo: ublue-os/main
container_ref: main
push_container: "false"
run-bluefin-build:
name: Build uBlue-OS Bluefin
continue-on-error: false
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
fail-fast: false
max-parallel: 5
matrix:
image_name:
- bluefin
- bluefin-dx
major_version:
- 39
image_variant:
- main
- nvidia
- asus
- asus-nvidia
- framework
- surface
- surface-nvidia
include:
- major_version: 39
support: latest
#- major_version: 38
# support: gts
exclude:
# There is no Fedora 39 version of lxqt as it was replaced by lazurite
- image_name: lxqt
major_version: 39
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Determine AKMODS_FLAVOR
run: |
if [[ "${{ matrix.image_variant }}" =~ ^asus* ]]; then
echo "AKMODS_FLAVOR=asus" >> $GITHUB_ENV
elif [[ "${{ matrix.image_variant }}" =~ ^surface* ]]; then
echo "AKMODS_FLAVOR=surface" >> $GITHUB_ENV
else
echo "AKMODS_FLAVOR=main" >> $GITHUB_ENV
fi
- name: Build image
uses: ./
with:
image_name: ${{ matrix.image_name }}
image_variant: ${{ matrix.image_variant }}
version: ${{ matrix.major_version }}
support: ${{ matrix.support }}
signing_key: ${{ secrets.SIGNING_SECRET }}
target: ${{ matrix.image_name }}
extra_build_args: |
AKMODS_FLAVOR=${{ env.AKMODS_FLAVOR }}
container_registry: ghcr.io/${{ github.repository }}
container_repo: ublue-os/bluefin
container_ref: main
push_container: "false"
check:
name: Check build successful
if: ${{ !cancelled() }}
runs-on: ubuntu-latest
needs:
- run-main-build
- run-bluefin-build
steps:
- name: Exit on failure for main
if: ${{ needs.run-main-build.result == 'failure' || needs.run-main-build.result == 'skipped' }}
shell: bash
run: exit 1
- name: Exit on failure for bluefin
if: ${{ needs.run-bluefin-build.result == 'failure' || needs.run-bluefin-build.result == 'skipped' }}
shell: bash
run: exit 1
- name: Exit
shell: bash
run: exit 0