Skip to content

Commit

Permalink
Add TESLA_CLIENT_ID to docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
naltatis committed Jan 24, 2024
1 parent 1585563 commit d51604f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
10 changes: 6 additions & 4 deletions .goreleaser-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -43,6 +44,7 @@ archives:
env:
- CGO_ENABLED=0
- TESLA_CLIENT_ID={{ .Env.TESLA_CLIENT_ID }}

universal_binaries:
- replace: true
Expand Down
10 changes: 6 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ builds:
- -trimpath
- -tags=release
ldflags:
- -X github.com/evcc-io/evcc/server.Version={{ .Version }} -s -w
- -X github.com/evcc-io/evcc/server.Version={{ .Version }} -X github.com/evcc-io/evcc/vehicle/tesla-vehicle-command.OAuth2Config.ClientID={{ .Env.TESLA_CLIENT_ID }} -s -w
env:
- CGO_ENABLED=0
goos:
Expand All @@ -29,12 +29,14 @@ 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 }}"

env:
- CGO_ENABLED=0
- TESLA_CLIENT_ID={{ .Env.TESLA_CLIENT_ID }}

archives:
- builds:
Expand Down

0 comments on commit d51604f

Please sign in to comment.