-
Notifications
You must be signed in to change notification settings - Fork 8
/
.goreleaser.yml
71 lines (71 loc) · 1.7 KB
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
before:
hooks:
- go mod download
- go generate ./...
builds:
- binary: pdagent
env:
- CGO_ENABLED=0
ldflags:
- -s -w
- -X 'github.com/PagerDuty/go-pdagent/pkg/common.Version={{.Version}}'
- -X 'github.com/PagerDuty/go-pdagent/pkg/common.Commit={{.ShortCommit}}'
- -X 'github.com/PagerDuty/go-pdagent/pkg/common.Date={{.Date}}'
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
signs:
- artifacts: all
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
nfpms:
- replacements:
linux: Linux
386: i386
amd64: x86_64
vendor: PagerDuty Inc.
homepage: https://www.pagerduty.com/
maintainer: PagerDuty, Inc. <[email protected]>
description: PagerDuty's agent daemon.
license: Apache 2.0
formats:
- deb
- rpm
empty_folders:
- /etc/pdagent
- /var/db/pdagent
- /var/lib/pdagent
- /var/log/pdagent
- /var/run/pdagent
contents:
- src: "init/pdagent.init"
dst: "/var/lib/pdagent/scripts/pdagent.init"
- src: "init/pdagent.service"
dst: "/var/lib/pdagent/scripts/pdagent.service"
- src: "scripts/pd-*"
dst: "/usr/local/bin/"
overrides:
deb:
scripts:
preinstall: "scripts/deb/preinstall.sh"
postinstall: "scripts/deb/postinstall.sh"
preremove: "scripts/deb/preremove.sh"
postremove: "scripts/deb/postremove.sh"
rpm:
scripts:
preinstall: "scripts/rpm/preinstall.sh"
postinstall: "scripts/rpm/postinstall.sh"
preremove: "scripts/rpm/preremove.sh"
postremove: "scripts/rpm/postremove.sh"