Jenkins部署hxopx-kb-worker,并修改环境变量值

This commit is contained in:
sophie committed 2026-05-28 11:15:53 +08:00
1 parent 24f99070a3
commit a9753fd10f
10 files changed
+345 -30

No files matched your search

+3 -2
View File
@@ -141,12 +141,13 @@ if [[ "${FRONTEND_CHANGED}" == "true" ]]; then
services+=("hxops-frontend")
fi
if [[ "${BACKEND_CHANGED}" == "true" ]]; then
services+=("hxops-backend")
# 知识库清洗与 backend 共用镜像;仅重建 backend 时 worker 会继续跑旧容器/旧代码
services+=("hxops-backend" "hxops-kb-worker")
fi
# 如果只是部署配置变更(如 compose/env/脚本),但前后端代码未改,则两边都更新
if [[ ${#services[@]} -eq 0 && "${DEPLOY_CONFIG_CHANGED}" == "true" ]]; then
services=("hxops-frontend" "hxops-backend")
services=("hxops-frontend" "hxops-backend" "hxops-kb-worker")
fi
# 无变更则直接跳过,避免无意义重启