-
Notifications
You must be signed in to change notification settings - Fork 81
/
.goreleaser.yml
312 lines (279 loc) · 10.4 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
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
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
project_name: ld-relay
builds:
- env:
- CGO_ENABLED=0
main: .
binary: ld-relay
# Default is `-s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}} -X main.date={{.Date}}`.
ldflags:
- -s -w -X internal.version.Version={{.Version}}
goos:
- darwin
- linux
- windows
goarch:
- '386'
- amd64
- arm
- arm64
goarm:
- "7"
ignore: # Go 1.15+ doesn't support 32-bit Darwin
- goos: darwin
goarch: '386'
nfpms:
-
file_name_template: >-
{{ .ConventionalFileName }}
homepage: https://launchdarkly.com/
maintainer: LaunchDarkly <[email protected]>
description: LaunchDarkly Stream Relay Proxy
license: Apache 2.0
vendor: Catamorphic Co.
formats:
- deb
- rpm
contents:
- src: linux/etc/ld-relay.conf
dst: /etc/ld-relay.conf
type: config
- src: linux/etc/init/ld-relay.conf
dst: /etc/init/ld-relay.conf
packager: deb
- src: linux/etc/system/ld-relay.service
dst: /usr/lib/systemd/system/ld-relay.service
packager: rpm
overrides:
deb:
dependencies:
- upstart
rpm:
dependencies:
- systemd
release:
disable: true # this disables releasing *to GitHub*; it will still push to Docker
# (we want Releaser to be responsible for doing all the GitHub release manipulations)
dockers:
# The following templates are for the Alpine-based image.
# i386
- image_templates:
- "launchdarkly/ld-relay:{{ .Version }}-i386"
- "launchdarkly/ld-relay:v{{ .Major }}-i386"
- "launchdarkly/ld-relay:latest-i386"
use: buildx
goos: linux
goarch: '386'
dockerfile: Dockerfile.goreleaser
skip_push: false
build_flag_templates:
- "--pull"
- "--platform=linux/386"
# AMD64
- image_templates:
- "launchdarkly/ld-relay:{{ .Version }}-amd64"
- "launchdarkly/ld-relay:v{{ .Major }}-amd64"
- "launchdarkly/ld-relay:latest-amd64"
use: buildx
goos: linux
goarch: amd64
dockerfile: Dockerfile.goreleaser
skip_push: false
build_flag_templates:
- "--pull"
- "--platform=linux/amd64"
# ARMv7
- image_templates:
- "launchdarkly/ld-relay:{{ .Version }}-armv7"
- "launchdarkly/ld-relay:v{{ .Major }}-armv7"
- "launchdarkly/ld-relay:latest-armv7"
use: buildx
goos: linux
goarch: arm
goarm: 7
dockerfile: Dockerfile.goreleaser
skip_push: false
build_flag_templates:
- "--pull"
- "--platform=linux/arm/v7"
# ARM64v8
- image_templates:
- "launchdarkly/ld-relay:{{ .Version }}-arm64v8"
- "launchdarkly/ld-relay:v{{ .Major }}-arm64v8"
- "launchdarkly/ld-relay:latest-arm64v8"
use: buildx
goos: linux
goarch: arm64
dockerfile: Dockerfile.goreleaser
skip_push: false
build_flag_templates:
- "--pull"
- "--platform=linux/arm64/v8"
## The following image templates are for the nonroot debian12 distroless image.
# AMD64
- image_templates:
- "launchdarkly/ld-relay:{{ .Version }}-static-debian12-nonroot-amd64"
- "launchdarkly/ld-relay:v{{ .Major }}-static-debian12-nonroot-amd64"
- "launchdarkly/ld-relay:latest-static-debian12-nonroot-amd64"
use: buildx
goos: linux
goarch: amd64
dockerfile: Dockerfile-static-debian12-nonroot.goreleaser
skip_push: false
build_flag_templates:
- "--pull"
- "--platform=linux/amd64"
# ARMv7
- image_templates:
- "launchdarkly/ld-relay:{{ .Version }}-static-debian12-nonroot-armv7"
- "launchdarkly/ld-relay:v{{ .Major }}-static-debian12-nonroot-armv7"
- "launchdarkly/ld-relay:latest-static-debian12-nonroot-armv7"
use: buildx
goos: linux
goarch: arm
goarm: 7
dockerfile: Dockerfile-static-debian12-nonroot.goreleaser
skip_push: false
build_flag_templates:
- "--pull"
- "--platform=linux/arm/v7"
# ARM64v8
- image_templates:
- "launchdarkly/ld-relay:{{ .Version }}-static-debian12-nonroot-arm64v8"
- "launchdarkly/ld-relay:v{{ .Major }}-static-debian12-nonroot-arm64v8"
- "launchdarkly/ld-relay:latest-static-debian12-nonroot-arm64v8"
use: buildx
goos: linux
goarch: arm64
dockerfile: Dockerfile-static-debian12-nonroot.goreleaser
skip_push: false
build_flag_templates:
- "--pull"
- "--platform=linux/arm64/v8"
## The following image templates are for the debug nonroot debian12 distroless image. This image is
## necessary to get a shell in the container for debugging purposes.
# AMD64
- image_templates:
- "launchdarkly/ld-relay:{{ .Version }}-static-debian12-debug-nonroot-amd64"
- "launchdarkly/ld-relay:v{{ .Major }}-static-debian12-debug-nonroot-amd64"
- "launchdarkly/ld-relay:latest-static-debian12-debug-nonroot-amd64"
use: buildx
goos: linux
goarch: amd64
dockerfile: Dockerfile-static-debian12-debug-nonroot.goreleaser
skip_push: false
build_flag_templates:
- "--pull"
- "--platform=linux/amd64"
# ARMv7
- image_templates:
- "launchdarkly/ld-relay:{{ .Version }}-static-debian12-debug-nonroot-armv7"
- "launchdarkly/ld-relay:v{{ .Major }}-static-debian12-debug-nonroot-armv7"
- "launchdarkly/ld-relay:latest-static-debian12-debug-nonroot-armv7"
use: buildx
goos: linux
goarch: arm
goarm: 7
dockerfile: Dockerfile-static-debian12-debug-nonroot.goreleaser
skip_push: false
build_flag_templates:
- "--pull"
- "--platform=linux/arm/v7"
# ARM64v8
- image_templates:
- "launchdarkly/ld-relay:{{ .Version }}-static-debian12-debug-nonroot-arm64v8"
- "launchdarkly/ld-relay:v{{ .Major }}-static-debian12-debug-nonroot-arm64v8"
- "launchdarkly/ld-relay:latest-static-debian12-debug-nonroot-arm64v8"
use: buildx
goos: linux
goarch: arm64
dockerfile: Dockerfile-static-debian12-debug-nonroot.goreleaser
skip_push: false
build_flag_templates:
- "--pull"
- "--platform=linux/arm64/v8"
docker_manifests:
# For backwards compatibility, we publish the :latest, :vX, and :x.y.z tags for Alpine without any suffix
# indicating that the image is Alpine based (unlike the debian12 images). This is because it's what was done historically,
# and we cannot change it yet without breaking existing users.
- name_template: "launchdarkly/ld-relay:{{ .Version}}"
skip_push: false
image_templates:
- "launchdarkly/ld-relay:{{ .Version }}-amd64"
- "launchdarkly/ld-relay:{{ .Version }}-armv7"
- "launchdarkly/ld-relay:{{ .Version }}-arm64v8"
- "launchdarkly/ld-relay:{{ .Version }}-i386"
- name_template: "launchdarkly/ld-relay:v{{ .Major }}"
skip_push: false
image_templates:
- "launchdarkly/ld-relay:v{{ .Major }}-amd64"
- "launchdarkly/ld-relay:v{{ .Major }}-armv7"
- "launchdarkly/ld-relay:v{{ .Major }}-arm64v8"
- "launchdarkly/ld-relay:v{{ .Major }}-i386"
- name_template: "launchdarkly/ld-relay:latest"
skip_push: false
image_templates:
- "launchdarkly/ld-relay:latest-amd64"
- "launchdarkly/ld-relay:latest-armv7"
- "launchdarkly/ld-relay:latest-arm64v8"
- "launchdarkly/ld-relay:latest-i386"
# We'll also create aliases for the Alpine-based image with the suffix "-alpine" to make it easier to distinguish
# from the debian12 image. This will also allow us to eventually deprecate the non-suffixed tags in a future major version.
- name_template: "launchdarkly/ld-relay:{{ .Version}}-alpine"
skip_push: false
image_templates:
- "launchdarkly/ld-relay:{{ .Version }}-amd64"
- "launchdarkly/ld-relay:{{ .Version }}-armv7"
- "launchdarkly/ld-relay:{{ .Version }}-arm64v8"
- "launchdarkly/ld-relay:{{ .Version }}-i386"
- name_template: "launchdarkly/ld-relay:v{{ .Major }}-alpine"
skip_push: false
image_templates:
- "launchdarkly/ld-relay:v{{ .Major }}-amd64"
- "launchdarkly/ld-relay:v{{ .Major }}-armv7"
- "launchdarkly/ld-relay:v{{ .Major }}-arm64v8"
- "launchdarkly/ld-relay:v{{ .Major }}-i386"
- name_template: "launchdarkly/ld-relay:latest-alpine"
skip_push: false
image_templates:
- "launchdarkly/ld-relay:latest-amd64"
- "launchdarkly/ld-relay:latest-armv7"
- "launchdarkly/ld-relay:latest-arm64v8"
- "launchdarkly/ld-relay:latest-i386"
# For the static debian12 image
- name_template: "launchdarkly/ld-relay:latest-static-debian12-nonroot"
skip_push: false
image_templates:
- "launchdarkly/ld-relay:latest-static-debian12-nonroot-amd64"
- "launchdarkly/ld-relay:latest-static-debian12-nonroot-armv7"
- "launchdarkly/ld-relay:latest-static-debian12-nonroot-arm64v8"
- name_template: "launchdarkly/ld-relay:{{ .Version}}-static-debian12-nonroot"
skip_push: false
image_templates:
- "launchdarkly/ld-relay:{{ .Version }}-static-debian12-nonroot-amd64"
- "launchdarkly/ld-relay:{{ .Version }}-static-debian12-nonroot-armv7"
- "launchdarkly/ld-relay:{{ .Version }}-static-debian12-nonroot-arm64v8"
- name_template: "launchdarkly/ld-relay:v{{ .Major }}-static-debian12-nonroot"
skip_push: false
image_templates:
- "launchdarkly/ld-relay:v{{ .Major }}-static-debian12-nonroot-amd64"
- "launchdarkly/ld-relay:v{{ .Major }}-static-debian12-nonroot-armv7"
- "launchdarkly/ld-relay:v{{ .Major }}-static-debian12-nonroot-arm64v8"
# For the debug static debian12 image
- name_template: "launchdarkly/ld-relay:latest-static-debian12-debug-nonroot"
skip_push: false
image_templates:
- "launchdarkly/ld-relay:latest-static-debian12-debug-nonroot-amd64"
- "launchdarkly/ld-relay:latest-static-debian12-debug-nonroot-armv7"
- "launchdarkly/ld-relay:latest-static-debian12-debug-nonroot-arm64v8"
- name_template: "launchdarkly/ld-relay:{{ .Version}}-static-debian12-debug-nonroot"
skip_push: false
image_templates:
- "launchdarkly/ld-relay:{{ .Version }}-static-debian12-debug-nonroot-amd64"
- "launchdarkly/ld-relay:{{ .Version }}-static-debian12-debug-nonroot-armv7"
- "launchdarkly/ld-relay:{{ .Version }}-static-debian12-debug-nonroot-arm64v8"
- name_template: "launchdarkly/ld-relay:v{{ .Major }}-static-debian12-debug-nonroot"
skip_push: false
image_templates:
- "launchdarkly/ld-relay:v{{ .Major }}-static-debian12-debug-nonroot-amd64"
- "launchdarkly/ld-relay:v{{ .Major }}-static-debian12-debug-nonroot-armv7"
- "launchdarkly/ld-relay:v{{ .Major }}-static-debian12-debug-nonroot-arm64v8"