-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgoreleaser.yml
91 lines (91 loc) · 2.23 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
project_name: hareply
builds:
-
id: hareply-build
binary: hareply
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
ldflags:
- -s -w -X github.com/friendlycaptcha/hareply/buildinfo.version={{.Version}} -X github.com/friendlycaptcha/hareply/buildinfo.commit={{.Commit}} -X github.com/friendlycaptcha/hareply/buildinfo.commitDate={{.CommitDate}}
archives:
-
id: hareply-archive
builds:
- hareply-build
name_template: >-
{{ .ProjectName }}_
{{- .Tag }}_
{{- .Os }}_
{{- .Arch}}
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- README.md
nfpms:
-
id: hareply-package
package_name: hareply
builds:
- hareply-build
file_name_template: >-
{{ .ProjectName }}_
{{- .Tag }}_
{{- .Os }}_
{{- .Arch}}
vendor: Friendly Captcha GmbH
homepage: https://github.com/friendlycaptcha/hareply
maintainer: Guido Zuidhof <[email protected]>
description: "hareply - responder for HAProxy's agent-check"
license: MIT
formats:
- apk
- deb
- rpm
bindir: /usr/bin
section: net
priority: optional
contents:
- dst: /etc/hareply
type: dir
file_info:
owner: root
group: root
mode: 0750
- src: assets/packages/hareply.service
dst: /etc/systemd/system/hareply.service
type: config
file_info:
owner: root
group: root
mode: 0640
- src: assets/packages/hareply.conf
dst: /etc/hareply/hareply.conf
type: config
file_info:
owner: root
group: root
mode: 0640
- src: assets/packages/agentstate
dst: /etc/hareply/agentstate
type: config
file_info:
owner: root
group: root
mode: 0640
scripts:
postinstall: "assets/packages/post-install.sh"
preremove: "assets/packages/pre-uninstall.sh"
postremove: "assets/packages/post-uninstall.sh"
deb:
lintian_overrides:
- statically-linked-binary
- changelog-file-missing-in-native-package
snapshot:
name_template: "{{ .Tag }}-next"