From a4a8c5986573fe92eda667c86b6eea6ee0637906 Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Tue, 21 Jul 2026 13:31:05 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=E7=A7=BB=E9=99=A4registry=20cache-t?= =?UTF-8?q?o=E5=86=99=E5=85=A5=EF=BC=8C=E9=81=BF=E5=85=8DACR=20tag?= =?UTF-8?q?=E4=B8=8D=E5=8F=AF=E5=8F=98=E5=AF=BC=E8=87=B4=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E5=8D=A1=E6=AD=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除两处--cache-to type=registry写入(ACR tag不可变导致写缓存失败触发重试) - 保留--cache-from type=registry只读作为兜底缓存源 - 本地local cache读写保持不变 --- scripts/ci/docker_build_push.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/scripts/ci/docker_build_push.sh b/scripts/ci/docker_build_push.sh index 711aeb09a..af4962a55 100755 --- a/scripts/ci/docker_build_push.sh +++ b/scripts/ci/docker_build_push.sh @@ -50,7 +50,6 @@ build_with_cache_retry() { --cache-from "type=local,src=${LOCAL_CACHE_DIR}" \ --cache-from "type=registry,ref=${CACHE_REF},ignore-error=true" \ --cache-to "type=local,dest=${LOCAL_CACHE_DIR},mode=max" \ - --cache-to "type=registry,ref=${CACHE_REF},mode=max,ignore-error=true" \ -f "${DOCKERFILE}" \ -t "${IMAGE_TAG}" \ --push \ @@ -84,7 +83,6 @@ build_with_cache_retry() { $BUILD_ARGS \ --cache-from "type=registry,ref=${CACHE_REF},ignore-error=true" \ --cache-to "type=local,dest=${LOCAL_CACHE_DIR},mode=max" \ - --cache-to "type=registry,ref=${CACHE_REF},mode=max,ignore-error=true" \ -f "${DOCKERFILE}" \ -t "${IMAGE_TAG}" \ --push \ -- 2.54.0