Skip to content

Commit

Permalink
Added ldflag for version
Browse files Browse the repository at this point in the history
  • Loading branch information
ziflex committed Mar 6, 2021
1 parent b3118ca commit f9cc8df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ builds:
goarch:
- amd64
- arm64
ldflags:
- -s -w -X main.version={{ .Version }}

archives:
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
Expand Down

0 comments on commit f9cc8df

Please sign in to comment.