Add TESLA_CLIENT_ID to docker build

This commit is contained in:
Michael Geers 2024-01-24 14:02:37 +01:00
parent 15855639c6
commit d51604f4ec
2 changed files with 12 additions and 8 deletions

View file

@ -9,7 +9,7 @@ builds:
- -trimpath
- -tags=release
ldflags:
- -X github.com/evcc-io/evcc/server.Version={{ .Tag }} -X github.com/evcc-io/evcc/server.Commit={{ .ShortCommit }} -s -w
- -X github.com/evcc-io/evcc/server.Version={{ .Tag }} -X github.com/evcc-io/evcc/server.Commit={{ .ShortCommit }} -X github.com/evcc-io/evcc/vehicle/tesla-vehicle-command.OAuth2Config.ClientID={{ .Env.TESLA_CLIENT_ID }} -s -w
env:
- CGO_ENABLED=0
goos:
@ -25,9 +25,10 @@ builds:
goarch: arm
- goos: windows
goarch: arm64
docker:
build_flag_templates:
- "--build-arg=TESLA_CLIENT_ID=${TESLA_CLIENT_ID}"
dockers:
- build_flag_templates:
- "--build-arg=TESLA_CLIENT_ID={{ .Env.TESLA_CLIENT_ID }}"
archives:
- builds:
@ -43,6 +44,7 @@ archives:
env:
- CGO_ENABLED=0
- TESLA_CLIENT_ID={{ .Env.TESLA_CLIENT_ID }}
universal_binaries:
- replace: true