-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
386 lines (335 loc) · 11.1 KB
/
.goreleaser.yaml
File metadata and controls
386 lines (335 loc) · 11.1 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
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
version: 2
# Publish the binaries directly, without any archiving
archives:
- formats: ["binary"]
builds:
# You can have multiple builds defined as a yaml list
- #
# ID of the build.
#
# Default: Project directory name
id: "pingcli"
# Binary name.
# Can be a path (e.g. `bin/app`) to wrap the binary in a directory.
#
# Default: Project directory name
binary: "pingcli"
# Custom environment variables to be set during the builds.
# Invalid environment variables will be ignored.
# For more info refer to: https://pkg.go.dev/cmd/go#hdr-Environment_variables
#
# Default: os.Environ() ++ env config section.
# Templates: allowed.
env:
- "CGO_ENABLED=0"
# GOOS list to build for.
# For more info refer to: https://golang.org/doc/install/source#environment
# Choices for $GOOS are android, darwin, dragonfly, freebsd, illumos, ios, js, linux, netbsd, openbsd, plan9, solaris, wasip1, and windows.
#
# Default: [ 'darwin', 'linux', 'windows' ]
goos:
- "darwin"
- "linux"
- "windows"
# GOARCH to build for.
# For more info refer to: https://golang.org/doc/install/source#environment
# Choices for $GOARCH are amd64 (64-bit x86, the most mature port), 386 (32-bit x86), arm (32-bit ARM), arm64 (64-bit ARM), ppc64le (PowerPC 64-bit, little-endian), ppc64 (PowerPC 64-bit, big-endian), mips64le (MIPS 64-bit, little-endian), mips64 (MIPS 64-bit, big-endian), mipsle (MIPS 32-bit, little-endian), mips (MIPS 32-bit, big-endian), s390x (IBM System z 64-bit, big-endian), and wasm (WebAssembly 32-bit).
#
# Default: [ '386', 'amd64', 'arm64' ]
goarch:
- "386"
- "amd64"
- "arm64"
# List of combinations of GOOS + GOARCH + GOARM to ignore.
ignore:
- goos: "linux"
goarch: "386"
checksum:
# Algorithm to be used.
#
# Accepted options are:
# - sha256
# - sha512
# - sha1
# - crc32
# - md5
# - sha224
# - sha384
# - sha3-256
# - sha3-512
# - sha3-224
# - sha3-384
# - blake2s
# - blake2b
#
# Default: 'sha256'.
algorithm: "sha256"
# If true, will create one checksum file for each artifact.
split: false
# Disable the generation/upload of the checksum file.
disable: false
homebrew_casks:
- # Git author used to commit to the repository.
commit_author:
name: "goreleaserbot"
email: "bot@goreleaser.com"
# The project name and current git tag are used in the format string.
#
# Templates: allowed.
commit_msg_template: "Brew cask update for {{ .ProjectName }} version {{ .Tag }}"
binaries:
- "pingcli"
# Caveats for the user of your binary.
# caveats: "How to use this binary"
# Your app's homepage.
#
# Default: inferred from global metadata.
homepage: "https://github.com/pingidentity/pingcli"
# Your app's description.
#
# Templates: allowed.
# Default: inferred from global metadata.
description: "The Ping CLI is a unified command line interface for configuring and managing Ping Identity Services."
# Setting this will prevent goreleaser to actually try to commit the updated
# cask - instead, the cask file will be stored on the dist directory
# only, leaving the responsibility of publishing it to the user.
# If set to auto, the release will not be uploaded to the homebrew tap
# in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1
#
# Templates: allowed.
skip_upload: "auto"
# So you can `brew test` your cask.
#
# Template: allowed
# test: |
# system "#{bin}/foo --version"
# # ...
# Repository to push the generated files to.
repository:
# Repository owner.
#
# Templates: allowed.
owner: "pingidentity"
# Repository name.
#
# Templates: allowed.
name: "homebrew-tap"
token: "{{ .Env.GORELEASER_HOMEBREW_TAP_GITHUB_PAT}}"
dockers:
# You can have multiple Docker images.
# Templates of the Docker image names.
#
# Templates: allowed.
- image_templates:
- "pingidentity/pingcli:{{ .Tag }}-amd64"
# Docker build flags.
#
# Templates: allowed.
build_flag_templates:
- "--platform=linux/amd64"
- "--pull"
# GOARCH of the built binaries/packages that should be used.
# Default: 'amd64'.
goarch: "amd64"
# Set the "backend" for the Docker pipe.
#
# Valid options are: docker, buildx, podman.
#
# Podman is a GoReleaser Pro feature and is only available on Linux.
#
# Default: 'docker'.
use: "buildx"
# You can have multiple Docker images.
# Templates of the Docker image names.
#
# Templates: allowed.
- image_templates:
- "pingidentity/pingcli:{{ .Tag }}-arm64"
# Docker build flags.
#
# Templates: allowed.
build_flag_templates:
- "--platform=linux/arm64"
- "--pull"
# GOARCH of the built binaries/packages that should be used.
# Default: 'amd64'.
goarch: "arm64"
# Set the "backend" for the Docker pipe.
#
# Valid options are: docker, buildx, podman.
#
# Podman is a GoReleaser Pro feature and is only available on Linux.
#
# Default: 'docker'.
use: "buildx"
docker_manifests:
# Name for the manifest.
#
# Templates: allowed.
- name_template: "pingidentity/pingcli:latest"
# Image name to be added to this manifest.
#
# Templates: allowed.
image_templates:
- "pingidentity/pingcli:{{ .Tag }}-amd64"
- "pingidentity/pingcli:{{ .Tag }}-arm64"
# Name for the manifest.
#
# Templates: allowed.
- name_template: "pingidentity/pingcli:{{ .Tag }}"
# Image name to be added to this manifest.
#
# Templates: allowed.
image_templates:
- "pingidentity/pingcli:{{ .Tag }}-amd64"
- "pingidentity/pingcli:{{ .Tag }}-arm64"
nfpms:
# note that this is an array of nfpm configs
- #
# ID of the nfpm config, must be unique.
#
# Default: 'default'.
id: "pingcli"
# Name of the package.
#
# Default: ProjectName.
# Templates: allowed.
package_name: "pingcli"
# Your app's vendor.
vendor: "Ping Identity"
# Your app's homepage.
#
# Default: inferred from global metadata.
homepage: "https://github.com/pingidentity/pingcli"
# Your app's maintainer (probably you).
#
# Default: inferred from global metadata.
maintainer: "Ping Identity"
# Your app's description.
#
# Default: inferred from global metadata.
description: "The Ping CLI is a unified command line interface for configuring and managing Ping Identity Services."
# Your app's license.
#
# Default: inferred from global metadata.
license: "Apache 2.0"
# Formats to be generated.
formats:
- "apk"
- "deb"
- "rpm"
# Custom configuration applied only to the RPM packager.
rpm:
# The package summary.
#
# Default: first line of the description.
summary: "The Ping CLI is a unified command line interface for configuring and managing Ping Identity Services."
# The packager is used to identify the organization that actually packaged
# the software, as opposed to the author of the software.
# `maintainer` will be used as fallback if not specified.
# This will expand any env var you set in the field, eg packager: ${PACKAGER}
packager: "Ping Identity"
# Custom configuration applied only to the Deb packager.
deb:
# Additional fields for the control file. Empty fields are ignored.
# This will expand any env vars you set in the field values, e.g. Vcs-Browser: ${CI_PROJECT_URL}
fields:
Bugs: "https://github.com/pingidentity/pingcli/issues"
apk:
# The package is signed if a key_file is set
signature:
# The name of the signing key. When verifying a package, the signature
# is matched to the public key store in /etc/apk/keys/<key_name>.rsa.pub.
#
# Default: maintainer's email address.
# Templates: allowed.
key_name: "origin"
release:
# If set to auto, will mark the release as not ready for production
# in case there is an indicator for this in the tag e.g. v1.0.0-rc1
# If set to true, will mark the release as not ready for production.
# Default is false.
prerelease: "auto"
# If set to false, will NOT mark the release as "latest".
# This prevents it from being shown at the top of the release list,
# and from being returned when calling https://api.github.com/repos/OWNER/REPO/releases/latest.
#
# Available only for GitHub.
#
# Default is true.
# Since: v1.20
make_latest: true
# What to do with the release notes in case there the release already exists.
#
# Valid options are:
# - `keep-existing`: keep the existing notes
# - `append`: append the current release notes to the existing notes
# - `prepend`: prepend the current release notes to the existing notes
# - `replace`: replace existing notes
#
# Default is `keep-existing`.
mode: "append"
signs:
- #
# ID of the sign config, must be unique.
#
# Default: 'default'.
id: "checksum"
# Which artifacts to sign
#
# Valid options are:
# - none no signing
# - all: all artifacts
# - checksum: checksum files
# - source: source archive
# - package: Linux packages (deb, rpm, apk, etc)
# - installer: Windows MSI installers (Pro only)
# - diskimage: macOS DMG disk images (Pro only)
# - archive: archives from archive pipe
# - sbom: any SBOMs generated for other artifacts
# - binary: binaries (only when `archives.format` is 'binary', use binaries_sign otherwise)
#
# Default: 'none'.
artifacts: "checksum"
- #
# ID of the sign config, must be unique.
#
# Default: 'default'.
id: "binary"
# Which artifacts to sign
#
# Valid options are:
# - none no signing
# - all: all artifacts
# - checksum: checksum files
# - source: source archive
# - package: Linux packages (deb, rpm, apk, etc)
# - installer: Windows MSI installers (Pro only)
# - diskimage: macOS DMG disk images (Pro only)
# - archive: archives from archive pipe
# - sbom: any SBOMs generated for other artifacts
# - binary: binaries (only when `archives.format` is 'binary', use binaries_sign otherwise)
#
# Default: 'none'.
artifacts: "binary"
- #
# ID of the sign config, must be unique.
#
# Default: 'default'.
id: "package"
# Which artifacts to sign
#
# Valid options are:
# - none no signing
# - all: all artifacts
# - checksum: checksum files
# - source: source archive
# - package: Linux packages (deb, rpm, apk, etc)
# - installer: Windows MSI installers (Pro only)
# - diskimage: macOS DMG disk images (Pro only)
# - archive: archives from archive pipe
# - sbom: any SBOMs generated for other artifacts
# - binary: binaries (only when `archives.format` is 'binary', use binaries_sign otherwise)
#
# Default: 'none'.
artifacts: "package"