fix(ci): pull the probe image before the smoke test in the release
Release / Publish tags (hub) (push) Successful in 19s
Release / Plan (reuse the published image?) (push) Successful in 5s
Release / ci (push) Successful in 2m17s
Release / Build hub image (amd64) (push) Successful in 21s
Release / Build probe image (amd64) (push) Successful in 21s
Release / Build hub image (arm64) (push) Successful in 23s
Release / Build probe image (arm64) (push) Successful in 25s
CI / Format and vet (push) Successful in 1m8s
CI / Tests (Linux, race detector) (push) Successful in 1m42s
CI / Dependency audit (push) Successful in 35s
CI / Docker images (build and smoke test) (push) Skipped
Release / Publish tags (probe) (push) Successful in 13s
Release / Gitea release (push) Successful in 5s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lucas RayanandClaude Opus 5.5 committed 2026-11-15 22:39:15 -03:00
1 parent 0895e43693
commit dc8e390dba
1 file changed
+2
+2
View File
@@ -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)"