Compare commits

...

2 Commits

Author SHA1 Message Date
c906e9e073 Merge branch 'main' of https://git.jb18cm.plus/fanfpy/AriStockAI 2025-07-21 14:40:11 +08:00
b7f58971fe ci: 添加前端构建缓存清除策略并更新阿里云配置
为前端服务添加构建时的缓存清除策略,通过引入CACHEBUST参数确保每次构建获取最新依赖
更新docker-compose.aliyun.yml添加pull_policy配置确保总是拉取最新镜像
2025-07-21 14:40:08 +08:00
2 changed files with 6 additions and 1 deletions

View File

@ -30,7 +30,11 @@ for service in "${SERVICES[@]}"; do
# 构建Docker镜像
echo "正在构建镜像: $IMAGE_NAME"
if [ "$service" = "frontend" ]; then
docker build --build-arg CACHEBUST=$(date +%s) -t $IMAGE_NAME $SERVICE_DIR
else
docker build -t $IMAGE_NAME $SERVICE_DIR
fi
if [ $? -ne 0 ]; then
echo "镜像构建失败"
exit 1

View File

@ -108,6 +108,7 @@ services:
frontend:
image: crpi-amr0dt5e5pywqwaf.cn-hangzhou.personal.cr.aliyuncs.com/testrrr/frontend:latest
pull_policy: always
container_name: ari-frontend
restart: always
depends_on: