ci: Docker镜像缓存按分支隔离 - develop写回缓存, feature分支只读 #243
Reference in New Issue
Block a user
Delete Branch "feat/docker-cache-branch-isolation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
改动
按分支隔离缓存读写策略(核心修复)
--cache-from+--cache-to)--cache-from,不写回)新增 npm 缓存 volume
npm ci全量下载依赖代码重构
build_with_cache函数,消除 3 份重复的 buildx 命令release改为develop,语义更清晰背景
最近 Build Staging 偶发耗时 53min(正常 7-8min),根因是 buildx 缓存失效。
多分支共享同一缓存 tag 互相覆盖是主因。
详见:/运维文档/docker_cache_optimization.md
ccb01ade3dto2d3f71c503