chore: 重构镜像仓库配置,支持多镜像源拉取

1. 更新env示例文件,默认使用ghcr.io镜像源,添加阿里云ACR切换说明
2. 完善生产环境docker-compose配置,增加镜像源注释和默认值
3. 重构CI工作流,支持同时推送镜像到阿里云ACR和ghcr.io
4. 更新部署文档,补充镜像仓库说明和多源切换指引
This commit is contained in:
zhang1106
2026-06-16 12:36:39 +08:00
parent 321c691402
commit 5e3998736d
4 changed files with 69 additions and 55 deletions
+4 -4
View File
@@ -3,11 +3,11 @@
# 复制此文件为 .env,填入实际值
# ============================================
# 后端镜像地址(阿里云容器镜像服务个人版
BACKEND_IMAGE=crpi-c807itn6exy37e7d.cn-hangzhou.personal.cr.aliyuncs.com/idc-assest/idc-backend:latest
# 后端镜像地址(从 ghcr.io 拉取公开镜像
BACKEND_IMAGE=ghcr.io/gituib/idc-backend:latest
# 前端镜像地址(阿里云容器镜像服务个人版
FRONTEND_IMAGE=crpi-c807itn6exy37e7d.cn-hangzhou.personal.cr.aliyuncs.com/idc-assest/idc-frontend:latest
# 前端镜像地址(从 ghcr.io 拉取公开镜像
FRONTEND_IMAGE=ghcr.io/gituib/idc-frontend:latest
# 指定特定版本(可选,默认 latest)
# BACKEND_VERSION=v1.0.0