mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-09-21 23:13:21 +08:00
fix(build): 禁用阿里云镜像推送的证明元数据
This commit is contained in:
@@ -314,6 +314,10 @@ build_for_platform() {
|
|||||||
|
|
||||||
if [ "$PUSH" = true ]; then
|
if [ "$PUSH" = true ]; then
|
||||||
build_cmd="$build_cmd --push"
|
build_cmd="$build_cmd --push"
|
||||||
|
# Aliyun ACR rejects the OCI artifact manifests used by BuildKit attestations.
|
||||||
|
if [[ "$REGISTRY" == registry.cn-*.aliyuncs.com/* ]]; then
|
||||||
|
build_cmd="$build_cmd --provenance=false --sbom=false"
|
||||||
|
fi
|
||||||
elif [ "$LOAD" = true ]; then
|
elif [ "$LOAD" = true ]; then
|
||||||
build_cmd="$build_cmd --load"
|
build_cmd="$build_cmd --load"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user