Skip to content

Commit

Permalink
Short git commit id in version from goreleaser build
Browse files Browse the repository at this point in the history
  • Loading branch information
abh committed Aug 8, 2021
1 parent 3420d3d commit 6f7744b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ builds:
ldflags:
- -s -w
- -X main.VERSION={{.Version}}{{ if index .Env "DRONE_BUILD_NUMBER" }}-{{ .Env.DRONE_BUILD_NUMBER }}{{ end }}
- -X main.gitVersion={{.Commit}}
- -X main.gitVersion={{.ShortCommit}}
- -X main.buildTime={{.Date}}

goos:
Expand Down

0 comments on commit 6f7744b

Please sign in to comment.