-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
61 lines (58 loc) · 1.25 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
nfpms:
- id: package
package_name: ncp
file_name_template: "{{ .ConventionalFileName }}"
builds:
- ncp
vendor: SB.IM Inno
homepage: https://github.com/sb-im/ncp
maintainer: a-wing <1@233.email>
description: |-
Edge gateway core communication service
license: MPL 2.0
formats:
- apk
- deb
- archlinux
bindir: /usr/bin
epoch: 2
version_metadata: git
release: 1
section: sbim
priority: extra
contents:
- src: conf/config-dist.yml
dst: /etc/ncp/
- src: conf/ncp.service
dst: /lib/systemd/system/
- src: conf/ncp@.service
dst: /lib/systemd/system/
deb:
lintian_overrides:
- statically-linked-binary
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
ldflags:
- -s -w
- -X "sb.im/ncp/constant.Version={{.Version}}"
- -X "sb.im/ncp/constant.Commit={{.Commit}}"
- -X "sb.im/ncp/constant.BuildTime={{.Date}}"
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^Merge'
- '^build'
- '^chore'
- '^docs'
- '^test'
- '^ci'