89 lines
2 KiB
YAML
89 lines
2 KiB
YAML
dist: release
|
|
release:
|
|
disable: true
|
|
|
|
builds:
|
|
- id: evcc
|
|
main: .
|
|
flags:
|
|
- -trimpath
|
|
- -tags=release
|
|
ldflags:
|
|
- -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:
|
|
- linux
|
|
goarch:
|
|
- amd64
|
|
- arm
|
|
- arm64
|
|
goarm:
|
|
- "6"
|
|
ignore:
|
|
- goos: windows
|
|
goarch: arm
|
|
- goos: windows
|
|
goarch: arm64
|
|
|
|
dockers:
|
|
- build_flag_templates:
|
|
- "--build-arg=TESLA_CLIENT_ID={{ .Env.TESLA_CLIENT_ID }}"
|
|
|
|
archives:
|
|
- builds:
|
|
- evcc
|
|
format: tar.gz
|
|
format_overrides:
|
|
- goos: windows
|
|
format: zip
|
|
files:
|
|
- evcc.dist.yaml
|
|
name_template: >-
|
|
{{ .ProjectName }}_{{ .Version }}_{{ if eq .Os "darwin" }}macOS{{ else }}{{ .Os }}{{ end }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}
|
|
|
|
env:
|
|
- CGO_ENABLED=0
|
|
- TESLA_CLIENT_ID={{ .Env.TESLA_CLIENT_ID }}
|
|
|
|
universal_binaries:
|
|
- replace: true
|
|
|
|
checksum:
|
|
name_template: "checksums.txt"
|
|
|
|
snapshot:
|
|
name_template: '{{ .Version }}{{ if eq (len (split .Version ".")) 2 }}.0{{ end }}+{{ .Timestamp }}'
|
|
|
|
changelog:
|
|
sort: asc
|
|
filters:
|
|
exclude:
|
|
- "^chore"
|
|
- "^bump"
|
|
- "^docs:"
|
|
- "^test:"
|
|
|
|
nfpms:
|
|
- id: default
|
|
package_name: evcc
|
|
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}-{{ .Arch }}{{ if .Arm }}hf{{ end }}"
|
|
|
|
homepage: https://evcc.io
|
|
description: EV Charge Controller
|
|
maintainer: andig <cpuidle@gmx.de>
|
|
license: MIT
|
|
vendor: evcc.io
|
|
|
|
formats:
|
|
- deb
|
|
|
|
contents:
|
|
- src: ./packaging/init/evcc.service
|
|
dst: /lib/systemd/system/evcc.service
|
|
|
|
scripts:
|
|
preinstall: ./packaging/scripts/preinstall.sh
|
|
postinstall: ./packaging/scripts/postinstall.sh
|
|
preremove: ./packaging/scripts/preremove.sh
|
|
postremove: ./packaging/scripts/postremove.sh
|