diff --git a/.goreleaser.yml b/.goreleaser.yml index 3ecf65fa9..f15bb0f94 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -8,6 +8,8 @@ before: builds: - id: evcc main: main.go + flags: + - -tags=release ldflags: - -X github.com/andig/evcc/server.Version={{.Version}} -X github.com/andig/evcc/server.Commit={{.ShortCommit}} env: diff --git a/Makefile b/Makefile index cb30a294c..532330dd4 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ assets: build: @echo Version: $(VERSION) $(BUILD_DATE) - go build -v -tags release -ldflags '-X "github.com/andig/evcc/server.Version=${VERSION}" -X "github.com/andig/evcc/server.Commit=${SHA}"' + go build -v -tags=release -ldflags '-X "github.com/andig/evcc/server.Version=${VERSION}" -X "github.com/andig/evcc/server.Commit=${SHA}"' publish-images: @echo Version: $(VERSION) $(BUILD_DATE)