Skip to content

Commit 6905d40

Browse files
Merge pull request #76 from metalefty/10-kitten-ver
Update Kitten 10 image filename
2 parents e767d6b + 0870a39 commit 6905d40

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/build-rpi-github-hosted.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,10 @@ jobs:
106106
[ "x${release}" != "x" ] && echo "full_release_version=${release}" >> $GITHUB_ENV
107107
[ "x${version_major}" != "x" ] && echo "version_major=${version_major}" >> $GITHUB_ENV
108108
[ "x${version_minor}" != "x" ] && echo "version_minor=${version_minor}" >> $GITHUB_ENV
109-
# Use AlmaLinux 9 to build images since appliance-tools not available in 10 yet
110-
container_version=9
111-
[ "x${container_version}" != "x" ] && echo "container_version=${container_version}" >> $GITHUB_ENV
109+
# Use AlmaLinux 9 to build 10 images since appliance-tools not available in 10 yet
110+
container_version=${version_major}
111+
[ "x${container_version}" = "x10" ] && container_version=9
112+
echo "container_version=${container_version}" >> $GITHUB_ENV
112113
113114
- name: Prepare some environment stuff
114115
run: |
@@ -154,8 +155,15 @@ jobs:
154155
echo "rpi_image_resultdir=${rpi_image_resultdir}" >> $GITHUB_ENV
155156
156157
# Image file base name
157-
image_name="AlmaLinux-${{ inputs.version_major }}-RaspberryPi-${{ matrix.partitioning }}-${{ env.full_release_version }}-${date_stamp}.aarch64"
158-
[ "${{ matrix.image_types }}" = "gnome" ] && image_name="AlmaLinux-${{ inputs.version_major }}-RaspberryPi-GNOME-${{ matrix.partitioning }}-${{ env.full_release_version }}-${date_stamp}.aarch64"
158+
if [ "x${{ env.kitten }}" = "x" ]; then
159+
image_name="AlmaLinux-${{ env.version_major }}-RaspberryPi-${{ matrix.partitioning }}-${{ env.full_release_version }}-${date_stamp}.aarch64"
160+
[ "${{ matrix.image_types }}" = "gnome" ] && image_name="AlmaLinux-${{ env.version_major }}-RaspberryPi-GNOME-${{ matrix.partitioning }}-${{ env.full_release_version }}-${date_stamp}.aarch64"
161+
else
162+
# Kitten
163+
image_name="AlmaLinux-Kitten-RaspberryPi-${{ matrix.partitioning }}-${{ env.version_major }}-${date_stamp}.aarch64"
164+
# Kitten GNOME
165+
[ "${{ matrix.image_types }}" = "gnome" ] && image_name="AlmaLinux-Kitten-RaspberryPi-GNOME-${{ matrix.partitioning }}-${{ env.version_major }}-${date_stamp}.aarch64"
166+
fi
159167
echo "image_name=${image_name}" >> $GITHUB_ENV
160168
161169
- name: Install KVM and libvirt packages

0 commit comments

Comments
 (0)