Skip to content

Commit

Permalink
Update actions-rootfs-builder.yml: Tests enhacement AlmaLinux#2
Browse files Browse the repository at this point in the history
  • Loading branch information
yuravk committed Mar 15, 2024
1 parent 727152e commit d018bad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/actions-rootfs-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -289,19 +289,19 @@ jobs:
if: inputs.push
id: test-images
run: |
# [Test]
archs="${{ inputs.platform }}"
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};
case ${arch}${platform} in
x86_64amd64|ppc64leppc64le|s390xs390x|aarch64arm64)
true;;
*)
echo "${platform} doesn't match ${result}" || false ;;
echo "${platform} doesn't match ${arch}" || false ;;
esac
echo " ${platform} matches ${arch}"
Expand Down

0 comments on commit d018bad

Please sign in to comment.