diff --git a/scripts/smoke-probe.sh b/scripts/smoke-probe.sh index b4d9484..c20200a 100755 --- a/scripts/smoke-probe.sh +++ b/scripts/smoke-probe.sh @@ -11,6 +11,8 @@ image=${1:?usage: smoke-probe.sh } max_bytes=$((15 * 1000 * 1000)) fail() { echo "smoke-probe: $*" >&2; exit 1; } +# In the release the image was pushed by buildx, not loaded: pull it first. +docker image inspect "$image" >/dev/null 2>&1 || docker pull -q "$image" >/dev/null size=$(docker image inspect -f '{{.Size}}' "$image") [ "$size" -lt "$max_bytes" ] || fail "image is $size bytes (limit $max_bytes)"