Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
yylyyl committed Oct 19, 2023
1 parent 426eb74 commit 2038168
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,26 @@ jobs:
echo "Check manifest: test:v1"
podman manifest exists test:v1
# We have to select image manually on older versions of podman
# Reference: https://github.com/containers/podman/pull/14827
echo "Check result: linux/amd64"
RESULT=$(podman run --rm --platform linux/amd64 localhost/test:v1)
DIGEST=$(podman manifest inspect test:v1 | jq '.manifests[] | select(.platform.architecture=="amd64") | .digest')
echo "Image digest: $DIGEST"
RESULT=$(podman run --rm localhost/test:v1@$DIGEST)
echo $RESULT
test "$RESULT" == "amd64"
echo "Check result: linux/arm64"
RESULT=$(podman run --rm --platform linux/arm64 localhost/test:v1)
DIGEST=$(podman manifest inspect test:v1 | jq '.manifests[] | select(.platform.architecture=="arm64") | .digest')
echo "Image digest: $DIGEST"
RESULT=$(podman run --rm localhost/test:v1@$DIGEST)
echo $RESULT
test "$RESULT" == "arm64"
echo "Check result: linux/arm"
RESULT=$(podman run --rm --platform linux/arm localhost/test:v1)
DIGEST=$(podman manifest inspect test:v1 | jq '.manifests[] | select(.platform.architecture=="arm") | .digest')
echo "Image digest: $DIGEST"
RESULT=$(podman run --rm localhost/test:v1@$DIGEST)
echo $RESULT
test "$RESULT" == "arm"

0 comments on commit 2038168

Please sign in to comment.