-
Notifications
You must be signed in to change notification settings - Fork 9
/
.goreleaser.yml
60 lines (54 loc) · 1.22 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
---
before:
hooks:
- go mod tidy
- mage generate
builds:
- ldflags:
- -s -w
- -X github.com/ti-mo/conntracct/cmd.version={{.Version}}
- -X github.com/ti-mo/conntracct/cmd.commit={{.Commit}}
- -X github.com/ti-mo/conntracct/cmd.date={{.Date}}
- -X github.com/ti-mo/conntracct/cmd.builtBy=goreleaser
- -X "github.com/ti-mo/conntracct/cmd.goversion={{.Env.GOVERSION}}"
goos:
- linux
goarch:
- amd64
goarm:
- 7
nfpms:
- vendor: Timo Beckers
maintainer: Timo Beckers <timo@incline.eu>
homepage: https://github.com/ti-mo/conntracct
description: Low-overhead network flow collector.
license: Apache 2.0
bindir: /usr/bin
formats:
- deb
- rpm
files:
"packaging/systemd/conntracct.service": "/lib/systemd/system/conntracct.service"
config_files:
"configs/default.yml": "/etc/conntracct/conntracct.yml"
scripts:
postinstall: "packaging/scripts/postinstall.sh"
overrides:
deb:
dependencies:
# setcap
- libcap2-bin
rpm:
dependencies:
# setcap
- libcap
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'