diff options
Diffstat (limited to 'image-builder/build-sbo-testbuild.sh')
| -rwxr-xr-x | image-builder/build-sbo-testbuild.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/image-builder/build-sbo-testbuild.sh b/image-builder/build-sbo-testbuild.sh index f982a91..8d08a03 100755 --- a/image-builder/build-sbo-testbuild.sh +++ b/image-builder/build-sbo-testbuild.sh @@ -116,7 +116,11 @@ LABEL ${PKGS_LABEL}="${PKGS_HASH}" CMD ["/bin/bash"] DOCKERFILE - local BUILD_FLAGS=() + # --provenance=false keeps the pushed manifest a plain Docker schema2 + # manifest rather than an OCI image index. The registry's garbage collector + # (distribution 2.8.x) does not follow OCI indexes and, with -m, deletes + # their child manifests; schema2 avoids that. See registry-gc.sh. + local BUILD_FLAGS=(--provenance=false) [[ "${FORCE}" == "true" ]] && BUILD_FLAGS+=(--no-cache) # Explicit exit checks: build_variant runs in an `if ! (...)` condition # (see Main), which suppresses `set -e` in this subshell, so a failed build |
