Add deb package and nightly distribution (#1977)
- Add publishing automated debian package releases via Cloudsmith.io, which allows evcc to be installed and updated via `apt` - Add nightly docker (:latest) and deb distribution - Disable docker builds for every commit on master - Allow nightly builds to be triggered manually
This commit is contained in:
parent
533731bf95
commit
54a4fe72ef
11 changed files with 459 additions and 208 deletions
60
.goreleaser-nightly.yml
Normal file
60
.goreleaser-nightly.yml
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
dist: release
|
||||
release:
|
||||
disable: true
|
||||
builds:
|
||||
- id: evcc
|
||||
main: main.go
|
||||
flags:
|
||||
- -tags=release
|
||||
ldflags:
|
||||
- -X github.com/evcc-io/evcc/server.Version={{.Version}}.0-nightly.{{.Date}} -X github.com/evcc-io/evcc/server.Commit={{.ShortCommit}} -s -w
|
||||
env:
|
||||
- CGO_ENABLED=0
|
||||
goos:
|
||||
- linux
|
||||
- darwin
|
||||
- windows
|
||||
goarch:
|
||||
- amd64
|
||||
- arm
|
||||
- arm64
|
||||
goarm:
|
||||
- "6"
|
||||
archives:
|
||||
- builds:
|
||||
- evcc
|
||||
replacements:
|
||||
darwin: macOS
|
||||
format: tar.gz
|
||||
format_overrides:
|
||||
- goos: windows
|
||||
format: zip
|
||||
files:
|
||||
- evcc.dist.yaml
|
||||
name_template: "{{.ProjectName}}_{{ .Version }}.0-nightly.{{.Date}}_{{.Os}}-{{.Arch}}"
|
||||
checksum:
|
||||
name_template: 'checksums.txt'
|
||||
snapshot:
|
||||
name_template: "nightly"
|
||||
nfpms:
|
||||
- id: default
|
||||
package_name: evcc
|
||||
file_name_template: "{{.ProjectName}}_{{ .Version }}.0-nightly.{{.Date}}_{{.Os}}-{{.Arch}}"
|
||||
|
||||
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:
|
||||
postinstall: ./packaging/scripts/postinstall.sh
|
||||
preremove: ./packaging/scripts/preremove.sh
|
||||
postremove: ./packaging/scripts/postremove.sh
|
||||
Loading…
Add table
Add a link
Reference in a new issue