Skip to content

Commit 0870a39

Browse files
committed
CI (github-hosted): Use AlmaLinux 9 to build 10 images
but AlmaLinux 9 for 9 images, AlmaLinux 8 for 8 images.
1 parent 29440c3 commit 0870a39

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 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: |

0 commit comments

Comments
 (0)