Fix crash in release version by adding release tag to goreleaser

This commit is contained in:
andig 2020-07-30 13:26:58 +02:00
parent e2c0ea9fcf
commit 9139817fb6
2 changed files with 3 additions and 1 deletions

View file

@ -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:

View file

@ -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)