feat(ci): 前端构建缓存优化 - 去重+BuildKit cache mount #427
Reference in New Issue
Block a user
Delete Branch "feat/ci-frontend-cache"
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?
优化内容
1. 干掉重复构建(最大收益)
Build frontend assets (npm build)步骤2. BuildKit cache mount 三级缓存
/root/.npmapps/web/node_modulesapps/web/.tscache3. 缓存特性
sharing=locked防止并发构建竞争写缓存预期收益
Web镜像构建时间从当前水平降低 40%-60%
验证
CI全绿,自动审批通过。