Skip to content

Commit

Permalink
AlmaLinux 10 support AlmaLinux#9
Browse files Browse the repository at this point in the history
  • Loading branch information
yuravk committed Sep 12, 2024
1 parent f033fbd commit 222fcef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-test-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ jobs:
name=almalinux-${{ inputs.version_major }}-${{ matrix.image_types }}
pwd=$( pwd )
path=${pwd}/${name}
almalinux_release='almalinux-release'
[ "${{ inputs.version_major }}" = "10" ] && almalinux_release='almalinux-kitten-release'
# The "tar file" for 'docker save' to write to
tar_name=${pwd}/${name}.tar
Expand Down Expand Up @@ -289,8 +291,7 @@ jobs:
docker build -t rootfs .
# Run the image and query almalinux-release package's architecture
arch=$( docker run --rm rootfs /bin/bash -c "rpm -q --qf=%{ARCH} almalinux-release" )
echo "arch=${arch}"
arch=$( docker run --rm rootfs /bin/bash -c "rpm -q --qf=%{ARCH} ${lmalinux_release}" )
# Map found architecture to the corresponding platform
platform=
Expand All @@ -307,7 +308,6 @@ jobs:
*)
echo "The '$arch' is incorrect or failed to determine architecture." && false;;
esac
echo "platform=${platform}"
# Delete copy of the "taken RootFS"
rm -f rootfs.tar.gz
Expand Down

0 comments on commit 222fcef

Please sign in to comment.