-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.goreleaser.yml
127 lines (127 loc) · 3.45 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
before:
hooks:
- go mod tidy
builds:
- id: oc-client
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
main: ./cmd/oc-client/main.go
binary: oc-client
ldflags:
- -s -w -X github.com/telekom-mms/oc-daemon/internal/daemon.Version={{.Version}}-{{.Commit}}
- id: oc-daemon
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
main: ./cmd/oc-daemon/main.go
binary: oc-daemon
ldflags:
- -s -w -X github.com/telekom-mms/oc-daemon/internal/daemon.Version={{.Version}}-{{.Commit}}
- id: oc-daemon-vpncscript
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
main: ./cmd/oc-daemon-vpncscript/main.go
binary: oc-daemon-vpncscript
ldflags:
- -s -w -X github.com/telekom-mms/oc-daemon/internal/daemon.Version={{.Version}}-{{.Commit}}
archives:
- format: tar.gz
wrap_in_directory: true
files:
- src: init/oc-daemon.service
dst: systemd/oc-daemon.service
info:
mode: 0644
- src: configs/oc-client.json
dst: examples/oc-client.json
info:
mode: 0644
- src: configs/oc-daemon.json
dst: examples/oc-daemon.json
info:
mode: 0644
- src: configs/dbus/com.telekom_mms.oc_daemon.Daemon.conf
dst: dbus/com.telekom_mms.oc_daemon.Daemon.conf
info:
mode: 0644
- README.md
- LICENSE
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-n{{ .Timestamp }}"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
nfpms:
- package_name: oc-daemon
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Arch }}"
vendor: Deutsche Telekom MMS GmbH
maintainer: The MMS Linux Dev Team <[email protected]>
description: |-
OpenConnect Daemon
Wraps OpenConnect to enhance functionality for corporate Linux clients.
license: MIT
formats:
- deb
dependencies:
- "nftables"
- "openconnect"
- "init-system-helpers (>= 1.62)"
bindir: /usr/bin
section: net
# important: this makes the package non native
release: "1"
priority: important
# chglog init -> generates changelog.yml
# chglog add --version v#.#.# -> after every tag, call in hook above?
# activate if https://github.com/goreleaser/nfpm/pull/656 is merged and used in goreleaser
# -> remove overrides
# changelog: "changelog.yml"
scripts:
postinstall: build/package/postinstall.sh
preremove: build/package/preremove.sh
postremove: build/package/postremove.sh
deb:
lintian_overrides:
- "no-manual-page"
- "no-changelog"
- "statically-linked-binary"
contents:
- src: init/oc-daemon.service
dst: /lib/systemd/system/
file_info:
mode: 0644
- src: configs/dbus/com.telekom_mms.oc_daemon.Daemon.conf
dst: /usr/share/dbus-1/system.d/
file_info:
mode: 0644
- src: configs/oc-client.json
dst: /usr/share/doc/oc-daemon/examples/
file_info:
mode: 0644
- src: configs/oc-daemon.json
dst: /usr/share/doc/oc-daemon/examples/
file_info:
mode: 0644
- src: copyright
dst: /usr/share/doc/oc-daemon/
file_info:
mode: 0644
release:
prerelease: auto
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json