-
Notifications
You must be signed in to change notification settings - Fork 5
/
.goreleaser.yaml
109 lines (97 loc) · 2.72 KB
/
.goreleaser.yaml
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
version: 2
before:
hooks:
- go mod download
builds:
- id: slik
main: ./cmd/slik/main.go
binary: slik
env:
- CGO_ENABLED=0
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath #removes all file system paths from the compiled executable
goos:
- linux
goarch:
- amd64
- arm64
- id: slurmabler
main: ./cmd/slurmabler/main.go
binary: slurmabler
env:
- CGO_ENABLED=0
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath #removes all file system paths from the compiled executable
goos:
- linux
goarch:
- amd64
- arm64
dockers:
- dockerfile: cmd/slik/Dockerfile.goreleaser
use: buildx
build_flag_templates:
- "--pull"
- "--platform=linux/amd64"
image_templates:
- "ewr.vultrcr.com/slurm/slik:latest-amd64"
- "ewr.vultrcr.com/slurm/slik:{{ .Tag }}-amd64"
extra_files:
- "cmd/slik/config.yaml"
ids:
- slik
- dockerfile: cmd/slik/Dockerfile.goreleaser
use: buildx
goarch: arm64
build_flag_templates:
- "--pull"
- "--platform=linux/arm64/v8"
image_templates:
- "ewr.vultrcr.com/slurm/slik:latest-arm64"
- "ewr.vultrcr.com/slurm/slik:{{ .Tag }}-arm64"
extra_files:
- "cmd/slik/config.yaml"
ids:
- slik
- dockerfile: cmd/slurmabler/Dockerfile.goreleaser
use: buildx
build_flag_templates:
- "--pull"
- "--platform=linux/amd64"
image_templates:
- "ewr.vultrcr.com/slurm/slurmabler:latest-amd64"
- "ewr.vultrcr.com/slurm/slurmabler:{{ .Tag }}-amd64"
ids:
- slurmabler
- dockerfile: cmd/slurmabler/Dockerfile.goreleaser
use: buildx
goarch: arm64
build_flag_templates:
- "--pull"
- "--platform=linux/arm64/v8"
image_templates:
- "ewr.vultrcr.com/slurm/slurmabler:latest-arm64"
- "ewr.vultrcr.com/slurm/slurmabler:{{ .Tag }}-arm64"
ids:
- slurmabler
docker_manifests:
- name_template: 'ewr.vultrcr.com/slurm/slik:latest'
image_templates:
- 'ewr.vultrcr.com/slurm/slik:latest-amd64'
- 'ewr.vultrcr.com/slurm/slik:latest-arm64'
- name_template: 'ewr.vultrcr.com/slurm/slik:{{ .Tag }}'
image_templates:
- 'ewr.vultrcr.com/slurm/slik:{{ .Tag }}-amd64'
- 'ewr.vultrcr.com/slurm/slik:{{ .Tag }}-arm64'
- name_template: 'ewr.vultrcr.com/slurm/slurmabler:latest'
image_templates:
- 'ewr.vultrcr.com/slurm/slurmabler:latest-amd64'
- 'ewr.vultrcr.com/slurm/slurmabler:latest-arm64'
- name_template: 'ewr.vultrcr.com/slurm/slurmabler:{{ .Tag }}'
image_templates:
- 'ewr.vultrcr.com/slurm/slurmabler:{{ .Tag }}-amd64'
- 'ewr.vultrcr.com/slurm/slurmabler:{{ .Tag }}-arm64'
release:
draft: false