- 删除 VERSION 文件 - publish.sh:用 git describe --exact-match 读当前 commit 的 tag 若无精确 tag 则拒绝构建并打印提示 - tag 支持 v1.2.3 或 1.2.3,推送时自动去掉 v 前缀 - 构建流程:git tag vX.Y.Z → git push origin vX.Y.Z → git pull --tags → bash scripts/publish.sh
- VERSION 文件:版本号单一来源(当前 1.0.0) - docker-compose.hub.yml / app.yml:镜像 tag 改为 \${IMAGE_TAG:-latest} - scripts/publish.sh:自动读取 VERSION、打双标签(x.y.z + latest)、推送到 Docker Hub