fix: reuse local imgproxy image during release

This commit is contained in:
john
2026-07-15 11:39:02 +08:00
parent e2d850c2e9
commit dd0014db83
2 changed files with 8 additions and 1 deletions
+3 -1
View File
@@ -16,7 +16,9 @@ if [[ "$DRY_RUN" == 1 ]]; then
fi
command -v docker >/dev/null || { echo 'docker is required to build the imgproxy runtime image' >&2; exit 1; }
docker pull --platform linux/arm64 "$IMAGE_REF"
if ! docker image inspect "$IMAGE_REF" >/dev/null 2>&1; then
docker pull --platform linux/arm64 "$IMAGE_REF"
fi
docker tag "$IMAGE_REF" "$IMAGE_TAG"
docker save "$IMAGE_TAG" | gzip -c > "$OUT_DIR/imgproxy-runtime-image.tar.gz"
shasum -a 256 "$OUT_DIR/imgproxy-runtime-image.tar.gz" > "$OUT_DIR/imgproxy-runtime-image.tar.gz.sha256"