diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 586904e..ba69ae7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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"