diff --git a/.goreleaser.yml b/.goreleaser.yml index ec206f8..c49e2db 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -14,6 +14,9 @@ builds: - darwin goarch: - amd64 + ldflags: + -X main.commit={{ slice .Commit 0 8 }} + -X main.version={{ .Version }} dockers: - goos: linux goarch: amd64