perf(ci): P2-5 Docker build registry缓存共享 - 12个runner共用缓存 (#656)
CI/CD Pipeline / Check if frontend-only change (push) Has been skipped
CI/CD Pipeline / Build Production API Image (push) Has been skipped
CI/CD Pipeline / Build Production Web Image (push) Has been skipped
CI/CD Pipeline / Build Production Worker Image (push) Has been skipped
CI/CD Pipeline / Deploy Production (push) Has been skipped
CI/CD Pipeline / Production Browser E2E (push) Has been skipped
CI/CD Pipeline / Frontend Lint (push) Successful in 3m21s
CI/CD Pipeline / Validate Code Quality And Tests (push) Successful in 4m59s
CI/CD Pipeline / Frontend Unit Tests (push) Successful in 6m8s
CI/CD Pipeline / Unit Tests (push) Successful in 7m13s
CI/CD Pipeline / Integration Tests (push) Successful in 2m41s
CI/CD Pipeline / Build Staging Web Image (push) Failing after 12m51s
CI/CD Pipeline / Build Staging API Image (push) Failing after 34m14s
CI/CD Pipeline / Build Staging Worker Image (push) Has been cancelled
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Has been cancelled
CI/CD Pipeline / Staging E2E Tests (push) Has been cancelled
CI/CD Pipeline / Staging API Integration Tests (push) Has been cancelled
CI/CD Pipeline / ACR Image Cleanup (push) Has been cancelled

Co-authored-by: xiaoxia <dev@xiaoxiajianji.com>
Co-committed-by: xiaoxia <dev@xiaoxiajianji.com>
This commit was merged in pull request #656.
This commit is contained in:
2026-07-20 21:10:17 +08:00
committed by auto-approve-bot
parent 8be5df5a11
commit d4fdebd1e5
+2
View File
@@ -50,6 +50,7 @@ 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" \
-f "${DOCKERFILE}" \
-t "${IMAGE_TAG}" \
--push \
@@ -83,6 +84,7 @@ 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" \
-f "${DOCKERFILE}" \
-t "${IMAGE_TAG}" \
--push \