chore: trim local build information (#9246)

This commit is contained in:
andig 2023-08-04 17:13:23 +02:00 • committed by GitHub
parent 146c88112d
commit 9a28381477
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View file

@ -10,7 +10,7 @@ VERSION := $(if $(TAG_NAME),$(TAG_NAME),$(SHA))
BUILD_DATE := $(shell date -u '+%Y-%m-%d_%H:%M:%S')
BUILD_TAGS := -tags=release
LD_FLAGS := -X github.com/evcc-io/evcc/server.Version=$(VERSION) -X github.com/evcc-io/evcc/server.Commit=$(COMMIT) -s -w
BUILD_ARGS := -ldflags='$(LD_FLAGS)'
BUILD_ARGS := -trimpath -ldflags='$(LD_FLAGS)'
# docker
DOCKER_IMAGE := evcc/evcc