- 自动从仓库取 VERSION 作为镜像 tag(没装 git 则退回时间戳 tag,同样唯一可回滚)→ docker compose up -d --build(构建上下文是 Git 地址,自动拉最新分支)→ 轮询 /api/version 确认 → 打印当前版本与回滚命令 - .gitignore 白名单补 scripts/upgrade-hub.sh;bash -n 校验通过