build(goreleaser): inject build metadata into binary during release
This commit is contained in:
1 parent
506e2e12a6
commit
7b546ea2ee
1 file changed
+4
-1
+4
-1
@@ -10,7 +10,10 @@ builds:
|
||||
main: ./cmd/server/
|
||||
binary: cli-proxy-api
|
||||
ldflags:
|
||||
- -X 'main.Version={{.Env.GORELEASER_CURRENT_TAG}}'
|
||||
- -s -w
|
||||
- -X 'main.Version={{.Version}}'
|
||||
- -X 'main.Commit={{.ShortCommit}}'
|
||||
- -X 'main.BuildDate={{.Date}}'
|
||||
archives:
|
||||
- id: "cli-proxy-api"
|
||||
format: tar.gz
|
||||
|
||||
Reference in new issue
Block a user