Add TESLA_CLIENT_ID to docker build
This commit is contained in:
parent
15855639c6
commit
d51604f4ec
2 changed files with 12 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue