Commit Graph

2 Commits

Author SHA1 Message Date
erio
81b4573edd refactor: 版本号改为以 git tag 为单一来源
- 删除 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
2026-03-01 21:09:47 +08:00
erio
c226b1188d feat: 版本管理 — VERSION 文件 + 构建发布脚本
- VERSION 文件:版本号单一来源(当前 1.0.0)
- docker-compose.hub.yml / app.yml:镜像 tag 改为 \${IMAGE_TAG:-latest}
- scripts/publish.sh:自动读取 VERSION、打双标签(x.y.z + latest)、推送到 Docker Hub
2026-03-01 21:05:51 +08:00