fix(ci): publish registry blobs in bounded chunks
CI / check (push) Successful in 52s
CI / deploy (push) Successful in 1m6s
CI / publish-container (push) Failing after 1m2s

This commit is contained in:
Simo committed 2026-09-09 20:22:07 +02:00
1 parent 047cd9f3dd
commit 2af244b634
5 files changed
+74 -8

No files matched your search

+15
View File
@@ -12,3 +12,18 @@ docker() {
fi
}
export -f git tar node docker
curl() {
local output="${@: -1}"
cat > "$output" <<'MOCK'
#!/usr/bin/env bash
echo "regctl $*" >> "$TEST_DIR/calls"
if [[ "$1 $2" = "image import" && "$SCENARIO" = upload-fails ]]; then exit 1; fi
if [[ "$1 $2" = "manifest get" ]]; then
if [[ "$SCENARIO" = wrong-config ]]; then echo sha256:wrong; else echo sha256:candidate; fi
fi
MOCK
}
sha256sum() { cat >/dev/null; [[ "$SCENARIO" != bad-checksum ]]; }
uname() { echo x86_64; }
export -f curl sha256sum uname