fix(ci): publish registry blobs in bounded chunks
This commit is contained in:
1 parent
047cd9f3dd
commit
2af244b634
5 files changed
+74
-8
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user