Skip to content

Commit

Permalink
fix: rework the logic, remove mate
Browse files Browse the repository at this point in the history
  • Loading branch information
p5 authored Jan 4, 2025
1 parent 126a9d9 commit 81f52fb
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,22 @@ jobs:
- base
- lazurite
- vauxite
include:
- image_name: base
source_image: base-atomic
fedora_version: 41
- image_name: sercia
source_image: sway-atomic
fedora_version: 41
- image_name: onyx
source_image: budgie-atomic
fedora_version: 41
- image_name: lazurite
source_image: lxqt-atomic
fedora_version: 41
- image_name: vauxite
source_image: xfce-atomic
fedora_version: 41

steps:
# Checkout push-to-registry action GitHub repository
Expand All @@ -43,18 +59,12 @@ jobs:
- name: Matrix Variables
shell: bash
run: |
if [[ "${{ matrix.image_name }}" == "mate" ]]; then
SOURCE_IMAGE=base
if [[ -z "${{ matrix.source_image }}" ]]; then
SOURCE_IMAGE=${{ matrix.source_image }}
else
SOURCE_IMAGE=${{ matrix.image_name }}
fi
if [[ "${{ matrix.fedora_version }}" == 41 ]]; then
if [[ "${{ matrix.image_name }}" != "silverblue" && "${{ matrix.image_name }}" != "kinoite" ]]; then
SOURCE_IMAGE=$SOURCE_IMAGE-atomic
fi
fi
echo "SOURCE_ORG=fedora-ostree-desktops" >> $GITHUB_ENV
echo "IMAGE_NAME=${{ matrix.image_name }}-main" >> $GITHUB_ENV
echo "SOURCE_IMAGE=$SOURCE_IMAGE" >> $GITHUB_ENV
Expand Down

0 comments on commit 81f52fb

Please sign in to comment.