-
Notifications
You must be signed in to change notification settings - Fork 136
/
.goreleaser.yml
510 lines (475 loc) · 15.1 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
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
project_name: armada
dist: "dist"
#gomod:
# proxy: true
snapshot:
name_template: "{{ .FullCommit }}"
env:
- GOPROXY={{ if index .Env "GOPROXY" }}{{ .Env.GOPROXY }}{{ else }}https://proxy.golang.org,direct{{ end }}
- GOSUMDB={{ if index .Env "GOSUMDB" }}{{ .Env.GOSUMDB }}{{ else }}sum.golang.org{{ end }}
- DOCKER_REPO={{ if index .Env "DOCKER_REPO" }}{{ .Env.DOCKER_REPO }}/{{ else }}gresearch/{{ end }}
# Goreleaser always uses the docker buildx builder with name "default"; see
# https://github.com/goreleaser/goreleaser/pull/3199
# To use a builder other than "default", set this variable.
# Necessary for, e.g., GitHub actions cache integration.
- DOCKER_BUILDX_BUILDER={{ if index .Env "DOCKER_BUILDX_BUILDER" }}{{ .Env.DOCKER_BUILDX_BUILDER }}{{ else }}default{{ end }}
- GOVERSION={{ if index .Env "GOVERSION" }}{{ .Env.GOVERSION }}{{ else }}go1.23{{ end }}
builds:
- env: [CGO_ENABLED=0]
id: server
binary: server
main: ./cmd/server/main.go
mod_timestamp: '{{ .CommitTimestamp }}'
goos:
- linux
goarch:
- amd64
- env: [CGO_ENABLED=0]
id: executor
binary: executor
main: ./cmd/executor/main.go
mod_timestamp: '{{ .CommitTimestamp }}'
goos:
- linux
goarch:
- amd64
- env: [CGO_ENABLED=0]
id: armadaloadtester
binary: armada-load-tester
main: ./cmd/armada-load-tester/main.go
mod_timestamp: '{{ .CommitTimestamp }}'
goos:
- linux
goarch:
- amd64
- env: [CGO_ENABLED=0]
id: testsuite
binary: testsuite
main: ./cmd/testsuite/main.go
mod_timestamp: '{{ .CommitTimestamp }}'
goos:
- linux
goarch:
- amd64
- env: [CGO_ENABLED=0]
id: binoculars
binary: binoculars
main: ./cmd/binoculars/main.go
mod_timestamp: '{{ .CommitTimestamp }}'
goos:
- linux
goarch:
- amd64
- env: [CGO_ENABLED=0]
id: lookoutv2
binary: lookoutv2
main: ./cmd/lookoutv2/main.go
mod_timestamp: '{{ .CommitTimestamp }}'
goos:
- linux
goarch:
- amd64
- env: [CGO_ENABLED=0]
id: lookoutingesterv2
binary: lookoutingesterv2
main: ./cmd/lookoutingesterv2/main.go
mod_timestamp: '{{ .CommitTimestamp }}'
goos:
- linux
goarch:
- amd64
- env: [CGO_ENABLED=0]
id: eventingester
binary: eventingester
main: ./cmd/eventingester/main.go
mod_timestamp: '{{ .CommitTimestamp }}'
goos:
- linux
goarch:
- amd64
- env: [CGO_ENABLED=0]
id: scheduler
binary: scheduler
main: ./cmd/scheduler/main.go
mod_timestamp: '{{ .CommitTimestamp }}'
goos:
- linux
goarch:
- amd64
- env: [CGO_ENABLED=0]
id: scheduleringester
binary: scheduleringester
main: ./cmd/scheduleringester/main.go
mod_timestamp: '{{ .CommitTimestamp }}'
goos:
- linux
goarch:
- amd64
- env: [CGO_ENABLED=0]
id: fakeexecutor
binary: fakeexecutor
main: ./cmd/fakeexecutor/main.go
mod_timestamp: '{{ .CommitTimestamp }}'
goos:
- linux
goarch:
- amd64
- env: [CGO_ENABLED=0]
id: armadactl
binary: armadactl
main: ./cmd/armadactl/main.go
mod_timestamp: '{{ .CommitTimestamp }}'
ldflags:
- -X github.com/armadaproject/armada/internal/armadactl/build.ReleaseVersion={{.Version}}
- -X github.com/armadaproject/armada/internal/armadactl/build.GitCommit={{.FullCommit}}
- -X github.com/armadaproject/armada/internal/armadactl/build.BuildTime={{.Date}}
- -X github.com/armadaproject/armada/internal/armadactl/build.GoVersion={{.Env.GOVERSION}}
goos:
- windows
- darwin
- linux
goarch:
- amd64
- arm64
source:
enabled: true
name_template: '{{ .ProjectName }}_{{ replace .Version "-" "_" }}_source'
format: "zip"
archives:
- id: armadactl
builds:
- armadactl
allow_different_binary_count: true
name_template: 'armadactl_{{ replace .Version "-" "_" }}_{{ .Os }}_{{ .Arch }}'
format: tar.gz
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- README.md
- MAINTAINERS.md
# macOS Universal Binaries-*
universal_binaries:
- replace: true
id: armadactl
name_template: 'armadactl'
sboms:
- artifacts: archive
# TODO: Enable once we have CI setup for it. See https://goreleaser.com/customization/sign/
# signs:
# - artifacts: checksum
dockers:
- id: bundle
use: buildx
goos: linux
goarch: amd64
image_templates:
- "{{ .Env.DOCKER_REPO }}armada-bundle:latest"
- "{{ .Env.DOCKER_REPO }}armada-bundle:{{ .Version }}"
build_flag_templates: &BUILD_FLAG_TEMPLATES
- --builder={{ .Env.DOCKER_BUILDX_BUILDER }}
- --label=org.opencontainers.image.source=https://github.com/armadaproject/armada
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.base.name=alpine:3.20.3
- --label=org.opencontainers.image.licenses=Apache-2.0
- --label=org.opencontainers.image.vendor=G-Research
ids:
- server
- executor
- binoculars
- eventingester
- scheduler
- scheduleringester
extra_files:
- config/server/config.yaml
- config/executor/config.yaml
- config/binoculars/config.yaml
- config/eventingester/config.yaml
- config/scheduler/config.yaml
- config/scheduleringester/config.yaml
dockerfile: ./build/bundles/armada/Dockerfile
- id: lookout-bundle
use: buildx
goos: linux
goarch: amd64
image_templates:
- "{{ .Env.DOCKER_REPO }}armada-lookout-bundle:latest"
- "{{ .Env.DOCKER_REPO }}armada-lookout-bundle:{{ .Version }}"
build_flag_templates: *BUILD_FLAG_TEMPLATES
ids:
- lookoutv2
- lookoutingesterv2
extra_files:
- config/lookoutv2/config.yaml
- config/lookoutingesterv2/config.yaml
- internal/lookout/ui
- pkg/api/api.swagger.json
- pkg/api/binoculars/api.swagger.json
dockerfile: ./build/bundles/lookout/Dockerfile
- id: full-bundle
use: buildx
goos: linux
goarch: amd64
image_templates:
- "{{ .Env.DOCKER_REPO }}armada-full-bundle:latest"
- "{{ .Env.DOCKER_REPO }}armada-full-bundle:{{ .Version }}"
build_flag_templates: *BUILD_FLAG_TEMPLATES
ids:
- server
- executor
- binoculars
- eventingester
- armadactl
- scheduler
- scheduleringester
- lookoutv2
- lookoutingesterv2
- fakeexecutor
extra_files:
- config/server/config.yaml
- config/executor/config.yaml
- config/binoculars/config.yaml
- config/eventingester/config.yaml
- config/scheduler/config.yaml
- config/scheduleringester/config.yaml
- config/lookoutv2/config.yaml
- config/lookoutingesterv2/config.yaml
- internal/lookout/ui
- pkg/api/api.swagger.json
- pkg/api/binoculars/api.swagger.json
dockerfile: ./build/bundles/full/Dockerfile
- id: server
use: buildx
goos: linux
goarch: amd64
image_templates:
- "{{ .Env.DOCKER_REPO }}armada-server:latest"
- "{{ .Env.DOCKER_REPO }}armada-server:{{ .Version }}"
build_flag_templates: *BUILD_FLAG_TEMPLATES
ids:
- server
extra_files:
- config/server/config.yaml
dockerfile: ./build/server/Dockerfile
- id: executor
use: buildx
goos: linux
goarch: amd64
image_templates:
- "{{ .Env.DOCKER_REPO }}armada-executor:latest"
- "{{ .Env.DOCKER_REPO }}armada-executor:{{ .Version }}"
build_flag_templates: *BUILD_FLAG_TEMPLATES
ids:
- executor
extra_files:
- config/executor/config.yaml
dockerfile: ./build/executor/Dockerfile
- id: fakeexecutor
use: buildx
goos: linux
goarch: amd64
image_templates:
- "{{ .Env.DOCKER_REPO }}armada-fakeexecutor:latest"
- "{{ .Env.DOCKER_REPO }}armada-fakeexecutor:{{ .Version }}"
build_flag_templates: *BUILD_FLAG_TEMPLATES
ids:
- fakeexecutor
extra_files:
- config/executor/config.yaml
dockerfile: ./build/fakeexecutor/Dockerfile
- id: armadaloadtester
use: buildx
goos: linux
goarch: amd64
image_templates:
- "{{ .Env.DOCKER_REPO }}armada-loadtester:latest"
- "{{ .Env.DOCKER_REPO }}armada-loadtester:{{ .Version }}"
build_flag_templates: *BUILD_FLAG_TEMPLATES
ids:
- armadaloadtester
dockerfile: ./build/loadtester/Dockerfile
- id: testsuite
use: buildx
goos: linux
goarch: amd64
image_templates:
- "{{ .Env.DOCKER_REPO }}armada-testsuite:latest"
- "{{ .Env.DOCKER_REPO }}armada-testsuite:{{ .Version }}"
build_flag_templates: *BUILD_FLAG_TEMPLATES
ids:
- testsuite
dockerfile: ./build/testsuite/Dockerfile
- id: lookoutingesterv2
use: buildx
goos: linux
goarch: amd64
image_templates:
- "{{ .Env.DOCKER_REPO }}armada-lookout-ingester-v2:latest"
- "{{ .Env.DOCKER_REPO }}armada-lookout-ingester-v2:{{ .Version }}"
build_flag_templates: *BUILD_FLAG_TEMPLATES
ids:
- lookoutingesterv2
extra_files:
- config/lookoutingesterv2/config.yaml
dockerfile: ./build/lookoutingesterv2/Dockerfile
- id: lookoutv2
use: buildx
goos: linux
goarch: amd64
image_templates:
- "{{ .Env.DOCKER_REPO }}armada-lookout-v2:latest"
- "{{ .Env.DOCKER_REPO }}armada-lookout-v2:{{ .Version }}"
build_flag_templates: *BUILD_FLAG_TEMPLATES
ids:
- lookoutv2
- lookoutingesterv2
extra_files:
- internal/lookout/ui
- pkg/api/api.swagger.json
- pkg/api/binoculars/api.swagger.json
- config/lookoutv2/config.yaml
- config/lookoutingesterv2/config.yaml
dockerfile: ./build/lookoutv2/Dockerfile
- id: eventingester
use: buildx
goos: linux
goarch: amd64
image_templates:
- "{{ .Env.DOCKER_REPO }}armada-event-ingester:latest"
- "{{ .Env.DOCKER_REPO }}armada-event-ingester:{{ .Version }}"
build_flag_templates: *BUILD_FLAG_TEMPLATES
ids:
- eventingester
extra_files:
- config/eventingester/config.yaml
dockerfile: ./build/eventingester/Dockerfile
- id: scheduler
use: buildx
goos: linux
goarch: amd64
image_templates:
- "{{ .Env.DOCKER_REPO }}armada-scheduler:latest"
- "{{ .Env.DOCKER_REPO }}armada-scheduler:{{ .Version }}"
build_flag_templates: *BUILD_FLAG_TEMPLATES
ids:
- scheduler
extra_files:
- config/scheduler/config.yaml
dockerfile: ./build/scheduler/Dockerfile
- id: scheduleringester
use: buildx
goos: linux
goarch: amd64
image_templates:
- "{{ .Env.DOCKER_REPO }}armada-scheduler-ingester:latest"
- "{{ .Env.DOCKER_REPO }}armada-scheduler-ingester:{{ .Version }}"
build_flag_templates: *BUILD_FLAG_TEMPLATES
ids:
- scheduleringester
extra_files:
- config/scheduleringester/config.yaml
dockerfile: ./build/scheduleringester/Dockerfile
- id: binoculars
use: buildx
goos: linux
goarch: amd64
image_templates:
- "{{ .Env.DOCKER_REPO }}armada-binoculars:latest"
- "{{ .Env.DOCKER_REPO }}armada-binoculars:{{ .Version }}"
build_flag_templates: *BUILD_FLAG_TEMPLATES
ids:
- binoculars
extra_files:
- config/binoculars/config.yaml
dockerfile: ./build/binoculars/Dockerfile
- id: armadactl
use: buildx
goos: linux
goarch: amd64
image_templates:
- "{{ .Env.DOCKER_REPO }}armadactl:latest"
- "{{ .Env.DOCKER_REPO }}armadactl:{{ .Version }}"
build_flag_templates: *BUILD_FLAG_TEMPLATES
ids:
- armadactl
dockerfile: ./build/armadactl/Dockerfile
changelog:
use:
github
sort: asc
abbrev: 0
groups: # Regex use RE2 syntax as defined here: https://github.com/google/re2/wiki/Syntax.
- title: 'Features'
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
order: 100
- title: 'Bug fixes'
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
order: 200
- title: 'Documentation'
regexp: '^.*?docs(\([[:word:]]+\))??!?:.+$'
order: 300
- title: 'Dependency updates'
regexp: '^.*?(feat|fix|chore)\(deps?.+\)!?:.+$'
order: 400
- title: 'Other work'
order: 999
filters:
exclude:
- '^test:'
- '^.*?Bump(\([[:word:]]+\))?.+$'
checksum:
name_template: "checksums.txt"
algorithm: sha256
release:
disable: '{{ if index .Env "FULL_RELEASE" }}false{{ else }}true{{ end }}'
mode: replace
header: |
## Armada v{{ .Version }}
For more info, head over to the docs page at https://armadaproject.io
### Armada CLI
`armadactl` controls the Armada batch job queueing system and is used for interacting with the system.
The CLI can be downloaded for a specific OS & Architecture from the Assets section below.
_NOTE: The OSX binary is packaged as an universal binary and should work on both Intel and Apple Silicon based Macs._
### Docker images
#### Armada Bundle
- `docker pull {{ .Env.DOCKER_REPO }}armada:{{ .Version }}`
- `docker pull {{ .Env.DOCKER_REPO }}armada:latest`
#### Armada Lookout Bundle
- `docker pull {{ .Env.DOCKER_REPO }}armada-lookout-bundle:{{ .Version }}`
- `docker pull {{ .Env.DOCKER_REPO }}armada-lookout-bundle:latest`
#### Armada Full Bundle
- `docker pull {{ .Env.DOCKER_REPO }}armada-full-bundle:{{ .Version }}`
- `docker pull {{ .Env.DOCKER_REPO }}armada-full-bundle:latest`
#### Armada Server
- `docker pull {{ .Env.DOCKER_REPO }}armada-server:{{ .Version }}`
- `docker pull {{ .Env.DOCKER_REPO }}armada-server:latest`
#### Armada Executor
- `docker pull {{ .Env.DOCKER_REPO }}armada-executor:{{ .Version }}`
- `docker pull {{ .Env.DOCKER_REPO }}armada-executor:latest`
#### Armada Lookout V2
- `docker pull {{ .Env.DOCKER_REPO }}armada-lookout-v2:{{ .Version }}`
- `docker pull {{ .Env.DOCKER_REPO }}armada-lookout-v2:latest`
#### Armada Lookout Ingester V2
- `docker pull {{ .Env.DOCKER_REPO }}armada-lookout-ingester-v2:{{ .Version }}`
- `docker pull {{ .Env.DOCKER_REPO }}armada-lookout-ingester-v2:latest`
#### Armada Event Ingester
- `docker pull {{ .Env.DOCKER_REPO }}armada-event-ingester:{{ .Version }}`
- `docker pull {{ .Env.DOCKER_REPO }}armada-event-ingester:latest`
#### Armada Scheduler
- `docker pull {{ .Env.DOCKER_REPO }}armada-scheduler:{{ .Version }}`
- `docker pull {{ .Env.DOCKER_REPO }}armada-scheduler:latest`
#### Armada Scheduler Ingester
- `docker pull {{ .Env.DOCKER_REPO }}armada-scheduler-ingester:{{ .Version }}`
- `docker pull {{ .Env.DOCKER_REPO }}armada-scheduler-ingester:latest`
#### Armada Binoculars
- `docker pull {{ .Env.DOCKER_REPO }}armada-binoculars:{{ .Version }}`
- `docker pull {{ .Env.DOCKER_REPO }}armada-binoculars:latest`
#### armadactl
- `docker pull {{ .Env.DOCKER_REPO }}armadactl:{{ .Version }}`
- `docker pull {{ .Env.DOCKER_REPO }}armadactl:latest`
footer: |
**Full Changelog**: https://github.com/armadaproject/armada/compare/{{ .PreviousTag }}...{{ .Tag }}