feat(build): 支持 build tag 版本注入并清理历史二进制
- ./run.sh build 仅输出项目根目录 ./aiops,构建前清理 backend/aiops-* - 新增 ./run.sh build tag v1.0.1,通过 ldflags 注入 Version/BuildTime/GitCommit - 支持 ./aiops version 子命令查看编译版本 - 删除误提交的 backend/aiops-cgo,gitignore 忽略 backend/aiops-*
This commit is contained in:
1 parent
1fd9a631e5
commit
8be51ac514
4 files changed
+67
-16
No files matched your search
@@ -19,12 +19,14 @@ backend/vendor/
|
||||
|
||||
# Compiled binary
|
||||
aiops
|
||||
aiops.bak.*
|
||||
sqlite3.db
|
||||
sqlite3.db-*
|
||||
redka.db
|
||||
redka.db-*
|
||||
backend/aiops-server
|
||||
backend/aiops
|
||||
backend/aiops-*
|
||||
backend/data/
|
||||
|
||||
# Config (keep backend/config.yaml as default)
|
||||
|
||||
Reference in new issue
Block a user