-
Notifications
You must be signed in to change notification settings - Fork 184
Expand file tree
/
Copy path.goreleaser-linux-amd64.yml
More file actions
259 lines (206 loc) · 6.25 KB
/
.goreleaser-linux-amd64.yml
File metadata and controls
259 lines (206 loc) · 6.25 KB
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
version: 2
builds:
- id: zrok-amd64
main: ./cmd/zrok2
binary: zrok2
ldflags: "-s -w -X github.com/openziti/zrok/v2/build.Version={{.Tag}} -X github.com/openziti/zrok/v2/build.Hash={{.ShortCommit}}"
env:
- CGO_ENABLED=1
goos:
- linux
goarch:
- amd64
nfpms:
- package_name: zrok2
id: zrok-cli
vendor: NetFoundry
homepage: https://zrok.io/
maintainer: support@zrok.io
description: |-
zrok is a next-generation sharing platform, designed to make sharing network and file resources simple and
secure.
license: Apache 2.0
# Build IDs for the builds you want to create NFPM packages for.
ids:
- zrok-amd64
# Formats to be generated.
formats:
- deb
- rpm
# {{ .ConventionalFileName }} satisfies the RPM name convention.
file_name_template: "{{ .ConventionalFileName }}"
# Umask to be used on files without explicit mode set. (overridable)
umask: 0o002
# Package version within this release version.
release: 1
# Section.
section: default
# Priority.
priority: optional
# GoReleaser will automatically add the binaries here
bindir: /usr/bin
# Contents to add to the package.
contents: []
- package_name: zrok2-controller
id: zrok-controller
vendor: NetFoundry
homepage: https://zrok.io/
maintainer: support@zrok.io
description: |-
This package provides zrok2-controller.service for running a self-hosted zrok controller.
Configure /etc/zrok2/ctrl.yml and run "systemctl enable --now zrok2-controller".
license: Apache 2.0
meta: true
formats:
- deb
- rpm
file_name_template: "{{ .ConventionalFileName }}"
umask: 0o002
release: 1
section: default
priority: optional
dependencies:
- zrok2
scripts:
postinstall: ./nfpm/postinstall-controller.bash
contents:
- dst: /lib/systemd/system/
src: ./nfpm/zrok2-controller.service
- dst: /usr/bin/zrok2-controller.bash
src: ./nfpm/zrok2-controller.bash
file_info:
mode: 0755
- dst: /etc/zrok2/ctrl.yml.example
src: ./etc/ctrl.yml
file_info:
mode: 0640
owner: zrok-controller
group: zrok-controller
- dst: /opt/openziti/etc/zrok2/zrok2-bootstrap.bash
src: ./nfpm/zrok2-bootstrap.bash
file_info:
mode: 0755
- dst: /etc/zrok2
type: dir
file_info:
mode: 0755
owner: root
group: root
- package_name: zrok2-metrics-bridge
id: zrok-metrics
vendor: NetFoundry
homepage: https://zrok.io/
maintainer: support@zrok.io
description: |-
This package provides zrok2-metrics-bridge.service for running the zrok controller metrics bridge.
Configure /etc/zrok2/ctrl.yml and run "systemctl enable --now zrok2-metrics-bridge".
license: Apache 2.0
meta: true
formats:
- deb
- rpm
file_name_template: "{{ .ConventionalFileName }}"
umask: 0o002
release: 1
section: default
priority: optional
dependencies:
- zrok2
scripts:
postinstall: ./nfpm/postinstall-metrics.bash
contents:
- dst: /lib/systemd/system/
src: ./nfpm/zrok2-metrics-bridge.service
- dst: /usr/bin/zrok2-metrics-bridge.bash
src: ./nfpm/zrok2-metrics-bridge.bash
file_info:
mode: 0755
- package_name: zrok2-frontend
id: zrok-frontend
vendor: NetFoundry
homepage: https://zrok.io/
maintainer: support@zrok.io
description: |-
This package provides zrok2-frontend.service for running a zrok public frontend.
Configure /etc/zrok2/frontend.yml and run "systemctl enable --now zrok2-frontend".
license: Apache 2.0
meta: true
formats:
- deb
- rpm
file_name_template: "{{ .ConventionalFileName }}"
umask: 0o002
release: 1
section: default
priority: optional
dependencies:
- zrok2
scripts:
postinstall: ./nfpm/postinstall-frontend.bash
contents:
- dst: /lib/systemd/system/
src: ./nfpm/zrok2-frontend.service
- dst: /usr/bin/zrok2-frontend.bash
src: ./nfpm/zrok2-frontend.bash
file_info:
mode: 0755
- dst: /etc/zrok2/frontend.yml.example
src: ./etc/dynamicProxy.yml
file_info:
mode: 0640
owner: zrok-frontend
group: zrok-frontend
- dst: /etc/zrok2
type: dir
file_info:
mode: 0755
owner: root
group: root
- package_name: zrok2-agent
id: zrok-agent
vendor: NetFoundry
homepage: https://zrok.io/
maintainer: support@zrok.io
description: |
This package provides zrok2-agent.service. Enable your zrok account on this device with "zrok2 enable". Run
"systemctl enable --user --now zrok2-agent.service" to enable the service for the current user and visit the agent
UI by running "zrok2 agent console".
license: Apache 2.0
# do not bundle the built binaries, only supporting files
meta: true
# Formats to be generated.
formats:
- deb
- rpm
# {{ .ConventionalFileName }} satisfies the RPM name convention.
file_name_template: "{{ .ConventionalFileName }}"
# Umask to be used on files without explicit mode set. (overridable)
umask: 0o002
# Package version within this release version.
release: 1
# Section.
section: default
# Priority.
priority: optional
# GoReleaser will automatically add the binaries here
dependencies:
- zrok2
# this allows users to satisfy the requirement for jq another way, not with the package manager, e.g.
# apt install --no-recommends zrok2-agent
recommends: []
overrides:
# yum and dnf do not automatically install "weak deps" aka "recommends", so we need to add them as a dependency
rpm:
dependencies:
- zrok2
# Contents to add to the package.
contents:
- dst: /usr/lib/systemd/user/
src: ./nfpm/zrok2-agent.service
- dst: /usr/bin/zrok2-enable
src: ./nfpm/zrok2-enable.bash
file_info:
mode: 0755
- dst: /etc/zrok2/
src: ./etc/caddy/multiple_upstream.Caddyfile
type: config|noreplace