Skip to content

Commit

Permalink
fix: suffix the Fedora 41 source image names with -atomic for non-sil… (
Browse files Browse the repository at this point in the history
  • Loading branch information
p5 authored Jan 4, 2025
1 parent 7aa0854 commit a70140c
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@ jobs:
- base
- lazurite
- vauxite
include:
- image_name: base
source_image: ${{ inputs.fedora_version == '41' && 'base-atomic' || '' }}
- image_name: sericea
source_image: ${{ inputs.fedora_version == '41' && 'sway-atomic' || '' }}
- image_name: onyx
source_image: ${{ inputs.fedora_version == '41' && 'budgie-atomic' || '' }}
- image_name: lazurite
source_image: ${{ inputs.fedora_version == '41' && 'lxqt-atomic' || '' }}
- image_name: vauxite
source_image: ${{ inputs.fedora_version == '41' && 'xfce-atomic' || '' }}

steps:
# Checkout push-to-registry action GitHub repository
Expand All @@ -42,14 +53,21 @@ jobs:

- name: Matrix Variables
shell: bash
env:
MATRIX_SOURCE_IMAGE: ${{ matrix.source_image }}
MATRIX_IMAGE_NAME: ${{ matrix.image_name }}
run: |
if [[ "${{ matrix.image_name }}" == "mate" ]]; then
echo "SOURCE_IMAGE=base" >> $GITHUB_ENV
if [[ -z $MATRIX_SOURCE_IMAGE ]]; then
echo "MATRIX_SOURCE_IMAGE empty"
SOURCE_IMAGE=$MATRIX_IMAGE_NAME
else
echo "SOURCE_IMAGE=${{ matrix.image_name }}" >> $GITHUB_ENV
echo "MATRIX_SOURCE_IMAGE not empty"
SOURCE_IMAGE=$MATRIX_SOURCE_IMAGE
fi
echo "SOURCE_ORG=fedora-ostree-desktops" >> $GITHUB_ENV
echo "IMAGE_NAME=${{ matrix.image_name }}-main" >> $GITHUB_ENV
echo "IMAGE_NAME=$MATRIX_IMAGE_NAME-main" >> $GITHUB_ENV
echo "SOURCE_IMAGE=$SOURCE_IMAGE" >> $GITHUB_ENV
- name: Generate tags
id: generate-tags
Expand Down

0 comments on commit a70140c

Please sign in to comment.