From 19749524a6c3158fadcad956b28899575c2947d5 Mon Sep 17 00:00:00 2001 From: Kai Hendry Date: Tue, 12 Feb 2019 20:34:31 +0800 Subject: [PATCH] Suggestions from https://github.com/goreleaser/goreleaser/issues/960 --- goreleaser.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/goreleaser.yml b/goreleaser.yml index bd88abd..4536131 100644 --- a/goreleaser.yml +++ b/goreleaser.yml @@ -1,8 +1,12 @@ build: main: ./web/main.go + ldflags: + - -s -w -X "invite.version={{.Version}}" -X "invite.commit={{.Commit}}" -X "invite.date={{.Date}}" env: - CGO_ENABLED=0 dockers: - image_templates: - uneet/invite + build_flag_templates: + - "--label=org.label-schema.version={{.Version}}"