feat(goreleaser): set version on build via ldflags
This commit is contained in:
parent
09dbf35a6a
commit
10021eb65e
1 changed files with 3 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
|
||||
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
|
||||
|
||||
version: 2
|
||||
|
||||
|
@ -15,6 +16,8 @@ builds:
|
|||
- arm64
|
||||
env:
|
||||
- CGO_ENABLED=0
|
||||
ldflags:
|
||||
- -s -w -X {{.ModulePath}}/internal/metadata.ChronoTomatoVersion={{.Version}}
|
||||
|
||||
upx:
|
||||
- enabled: true
|
||||
|
|
Loading…
Reference in a new issue