perf(ci): 后端镜像构建优化——腾讯云Maven镜像源+BuildKit缓存
CI/CD Deploy (Admin) / 构建后端镜像并部署 (push) Successful in 4m23s

- 镜像源从阿里云换成腾讯云(内网直连,解决依赖下载仅几十KB/s的问题)
- RUN 加 BuildKit cache mount 持久化 /root/.m2/repository,跨构建复用
- CI 构建步骤显式启用 DOCKER_BUILDKIT=1
This commit is contained in:
zhangjiaxun
2026-10-16 23:53:55 +08:00
parent e37c13d541
commit f07c1ae6b8
2 changed files with 7 additions and 6 deletions
+1
View File
@@ -47,6 +47,7 @@ jobs:
- name: 构建后端镜像
run: |
set -euo pipefail
export DOCKER_BUILDKIT=1
docker build -t freedom-admin:latest /opt/freedom/workspace-admin
- name: 部署后端服务