fix: 将 BuildKit 缓存导出降为非阻塞

This commit is contained in:
root
2026-07-17 09:37:57 +02:00
parent 1c83db2e2e
commit 5dd34c57f2
+1 -1
View File
@@ -485,7 +485,7 @@ function buildkitCacheArgs(args, cacheRef, registryOption) {
if (args.buildCacheMode === "disabled") return [];
return [
"--import-cache", `type=registry,ref=${cacheRef}${registryOption}`,
"--export-cache", `type=registry,ref=${cacheRef},mode=max${registryOption}`
"--export-cache", `type=registry,ref=${cacheRef},mode=max,ignore-error=true${registryOption}`
];
}