fix(ci): pull the probe image before the smoke test in the release
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0895e43693
commit
bdc7a01232
1 file changed
+2
@@ -11,6 +11,8 @@ image=${1:?usage: smoke-probe.sh <image-ref>}
|
||||
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)"
|
||||
|
||||
|
||||
Reference in new issue
Block a user