Check the image architecture before starting
CI / check (push) Canceled after 0s

This commit is contained in:
2026-10-20 07:34:16 +01:00
parent d0798a93a5
commit 2b2c41bebd
+4
View File
@@ -659,6 +659,10 @@ else
fi
fi
TARGET_IMAGE_ID="$(docker image inspect -f '{{.Id}}' "$IMAGE:$VERSION")"
IMAGE_ARCH="$(docker image inspect -f '{{.Architecture}}' "$IMAGE:$VERSION")"
if [ "$IMAGE_ARCH" != "$ARCH" ]; then
fail "Image $IMAGE:$VERSION is $IMAGE_ARCH but this machine is $ARCH. Pull the multi-arch image instead of --no-pull."
fi
if [ "$FORCE" = 0 ] && container_matches; then
connect_extra_network