Skip to content

Commit

Permalink
Update actions-rootfs-builder.yml: Tests enhacement AlmaLinux#1
Browse files Browse the repository at this point in the history
  • Loading branch information
yuravk committed Mar 15, 2024
1 parent 003e9f9 commit 727152e
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/actions-rootfs-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -291,12 +291,26 @@ jobs:
run: |
archs="${{ inputs.platform }}"
for arch in ${archs//,/ }; do
# docker run --platform=${arch} ${{ steps.build-images.outputs.imageid }} /bin/bash -c " \
docker run --platform=${arch} ${{ steps.build-images.outputs.digest }} /bin/bash -c " \
uname -m \
&& cat /etc/almalinux-release \
&& ( test "${{ matrix.image_types }}" != "micro" && rpm -q gpg-pubkey) || true "
for platform in ${archs//,/ }; do
echo "Testing ${{ inputs.major_version }} ${{ matrix.image_types }} ${platform} image"
# docker run --platform=${platform} ${{ steps.build-images.outputs.imageid }} /bin/bash -c " \
local arch=
arch=$( docker run --platform=${platform} ${{ steps.build-images.outputs.digest }} /bin/bash -c "uname -m" )
case result in ${arch}${platform};
x86_64amd64|ppc64leppc64le|s390xs390x|aarch64arm64)
true;;
*)
echo "${platform} doesn't match ${result}" || false ;;
esac
echo " ${platform} matches ${arch}"
local almalinux_release=
almalinux_release=$( docker run --platform=${platform} ${{ steps.build-images.outputs.digest }} /bin/bash -c "cat /etc/almalinux-release" )
[[ ${almalinux_release} = *'AlmaLinux release ${{ inputs.major_version }}'* ]] && echo " ${almalinux_release} matches" || false
docker run --platform=${platform} ${{ steps.build-images.outputs.digest }} /bin/bash -c " \
( test "${{ matrix.image_types }}" != "micro" && rpm -q gpg-pubkey) || true "
done
-
Expand Down

0 comments on commit 727152e

Please sign in to comment.