Skip to content

Commit

Permalink
add version info to goreleasers ldflags
Browse files Browse the repository at this point in the history
  • Loading branch information
simskij authored Mar 29, 2021
1 parent 69b7480 commit fac88f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ build:
- 386
- arm
- arm64
ldflags:
- -s -w -X main.build={{.Version}} -X github.com/containrrr/watchtower/cmd.version={{.Version}}
- ./usemsan=-msan
archives:
-
name_template: "{{.ProjectName}}_{{.Os}}_{{.Arch}}"
Expand Down

0 comments on commit fac88f9

Please sign in to comment.