forked from fidelity/kconnect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
222 lines (209 loc) · 7.66 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
before:
hooks:
- go mod download
builds:
-
id: default
main: ./cmd/kconnect
binary: kconnect
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X github.com/fidelity/kconnect/internal/version.buildDate={{.Date}} -X github.com/fidelity/kconnect/internal/version.commitHash={{.Commit}} -X github.com/fidelity/kconnect/internal/version.version={{.Version}}
goos:
- windows
- darwin
- linux
goarch:
- amd64
- arm64
ignore:
- goos: windows
goarch: arm64
release:
prerelease: auto
archives:
-
id: default
builds:
- default
name_template: '{{ .ProjectName }}_{{ if eq .Os "darwin" }}macos{{ else }}{{ .Os }}{{ end }}_{{ .Arch }}'
format: tar.gz
format_overrides:
- goos: windows
format: zip
checksum:
name_template: "{{ .ProjectName }}_checksums.txt"
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^test:'
- '^chore:'
- '^style:'
- '^Merge'
brews:
-
repository:
owner: fidelity
name: homebrew-tap
homepage: "https://github.com/fidelity/kconnect"
description: "Kubernetes Connection Manager CLI"
dependencies:
- aws-iam-authenticator
- Azure/kubelogin/kubelogin
- kubernetes-cli
folder: Formula
dockers:
-
image_templates: ["docker.io/kconnectcli/{{ .ProjectName }}:{{ .Tag }}-amd64"]
dockerfile: Dockerfile
use: buildx
build_flag_templates:
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
-
image_templates: ["docker.io/kconnectcli/{{ .ProjectName }}:{{ .Tag }}-arm64"]
dockerfile: Dockerfile
goarch: arm64
use: buildx
build_flag_templates:
- "--platform=linux/arm64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
-
image_templates: ["docker.io/kconnectcli/{{ .ProjectName }}:{{ .Tag }}-alpine-amd64"]
dockerfile: Dockerfile.alpine
use: buildx
build_flag_templates:
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
-
image_templates: ["docker.io/kconnectcli/{{ .ProjectName }}:{{ .Tag }}-alpine-arm64"]
dockerfile: Dockerfile.alpine
goarch: arm64
use: buildx
build_flag_templates:
- "--platform=linux/arm64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
-
image_templates: ["docker.io/kconnectcli/{{ .ProjectName }}:{{ .Tag }}-alpine-with-deps-amd64"]
dockerfile: Dockerfile.deps
use: buildx
build_flag_templates:
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
-
image_templates: ["docker.io/kconnectcli/{{ .ProjectName }}:{{ .Tag }}-alpine-with-deps-arm64"]
dockerfile: Dockerfile.deps
goarch: arm64
use: buildx
build_flag_templates:
- "--platform=linux/arm64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
docker_manifests:
-
name_template: "docker.io/kconnectcli/{{ .ProjectName }}:latest"
image_templates:
- "docker.io/kconnectcli/{{ .ProjectName }}:{{ .Tag }}-amd64"
- "docker.io/kconnectcli/{{ .ProjectName }}:{{ .Tag }}-arm64"
-
name_template: "docker.io/kconnectcli/{{ .ProjectName }}:{{ .Tag }}"
image_templates:
- "docker.io/kconnectcli/{{ .ProjectName }}:{{ .Tag }}-amd64"
- "docker.io/kconnectcli/{{ .ProjectName }}:{{ .Tag }}-arm64"
-
name_template: "docker.io/kconnectcli/{{ .ProjectName }}:v{{ .Major }}.{{ .Minor }}"
image_templates:
- "docker.io/kconnectcli/{{ .ProjectName }}:{{ .Tag }}-amd64"
- "docker.io/kconnectcli/{{ .ProjectName }}:{{ .Tag }}-arm64"
-
name_template: "docker.io/kconnectcli/{{ .ProjectName }}:latest-alpine"
image_templates:
- "docker.io/kconnectcli/{{ .ProjectName }}:{{ .Tag }}-alpine-amd64"
- "docker.io/kconnectcli/{{ .ProjectName }}:{{ .Tag }}-alpine-arm64"
-
name_template: "docker.io/kconnectcli/{{ .ProjectName }}:{{ .Tag }}-alpine"
image_templates:
- "docker.io/kconnectcli/{{ .ProjectName }}:{{ .Tag }}-alpine-amd64"
- "docker.io/kconnectcli/{{ .ProjectName }}:{{ .Tag }}-alpine-arm64"
-
name_template: "docker.io/kconnectcli/{{ .ProjectName }}:v{{ .Major }}.{{ .Minor }}-alpine"
image_templates:
- "docker.io/kconnectcli/{{ .ProjectName }}:{{ .Tag }}-alpine-amd64"
- "docker.io/kconnectcli/{{ .ProjectName }}:{{ .Tag }}-alpine-arm64"
-
name_template: "docker.io/kconnectcli/{{ .ProjectName }}:latest-alpine-with-deps"
image_templates:
- "docker.io/kconnectcli/{{ .ProjectName }}:{{ .Tag }}-alpine-with-deps-amd64"
- "docker.io/kconnectcli/{{ .ProjectName }}:{{ .Tag }}-alpine-with-deps-arm64"
-
name_template: "docker.io/kconnectcli/{{ .ProjectName }}:{{ .Tag }}-alpine-with-deps"
image_templates:
- "docker.io/kconnectcli/{{ .ProjectName }}:{{ .Tag }}-alpine-with-deps-amd64"
- "docker.io/kconnectcli/{{ .ProjectName }}:{{ .Tag }}-alpine-with-deps-arm64"
-
name_template: "docker.io/kconnectcli/{{ .ProjectName }}:v{{ .Major }}.{{ .Minor }}-alpine-with-deps"
image_templates:
- "docker.io/kconnectcli/{{ .ProjectName }}:{{ .Tag }}-alpine-with-deps-amd64"
- "docker.io/kconnectcli/{{ .ProjectName }}:{{ .Tag }}-alpine-with-deps-arm64"
nfpms:
-
package_name: kconnect
file_name_template: '{{ .ProjectName }}_{{ if eq .Os "darwin" }}macos{{ else }}{{ .Os }}{{ end }}_{{ .Arch }}'
vendor: kconnect authors
maintainer: Robert Casale <[email protected]>
homepage: https://github.com/fidelity/kconnect
description: "The Kubernetes Connection Manager CLI"
license: Apache 2.0
formats:
- apk
- deb
- rpm
dependencies:
- kubectl
# snapcrafts:
# -
# name: kconnect
# name_template: >-
# {{ .ProjectName }}_
# {{- if eq .Os "darwin" }}macos{{ end }}_
# {{ .Arch }}
# publish: true
# summary: "The Kubernetes Connection Manager CLI"
# description: "kconnect is a CLI utility that can be used to discover and securely access Kubernetes clusters across multiple operating environments."
# grade: stable
# confinement: strict
# license: Apache-2.0
# base: bare
# apps:
# kconnect:
# plugs: ["home", "network", "dot-aws-credentials", "dot-kube-config"]
# plugs:
# dot-aws-credentials:
# interface: personal-files
# write:
# - $HOME/.aws/credentials
# dot-kube-config:
# interface: personal-files
# write:
# - $HOME/.kube/config