1- # This is an example . goreleaser.yml file with some sane defaults.
2- # Make sure to check the documentation at http://goreleaser.com
1+ # Documentation: https:// goreleaser.com/customization/
2+ version : 2
33project_name : step
44
55before :
66 hooks :
7- # You may remove this if you don't use go modules.
87 - go mod download
9- # - go generate ./...
108
119builds :
12- -
13- id : default
10+ - &COMMON
1411 env :
1512 - CGO_ENABLED=0
13+ main : ./cmd/step/main.go
14+ flags :
15+ - -trimpath
16+ ldflags :
17+ - -w -X main.Version={{.Version}} -X main.BuildTime={{.Date}}
18+ -
19+ << : *COMMON
20+ id : default
1621 targets :
1722 - darwin_amd64
1823 - darwin_arm64
@@ -28,31 +33,48 @@ builds:
2833 - linux_ppc64le
2934 - windows_amd64
3035 - windows_arm64
31- flags :
32- - -trimpath
33- main : ./cmd/step/main.go
3436 binary : bin/step
35- ldflags :
36- - -w -X main.Version={{.Version}} -X main.BuildTime={{.Date}}
37+ -
38+ << : *COMMON
39+ id : debug
40+ gcflags : all=-N -l
41+ -
42+ # This build is for S3 binaries that follow our naming convention there.
43+ << : *COMMON
44+ id : s3-versioned
45+ targets :
46+ - darwin_amd64
47+ - darwin_arm64
48+ - linux_amd64
49+ - linux_arm64
50+ - windows_amd64
51+ - freebsd_amd64
52+ binary : ' step_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
53+ -
54+ # This build is for S3 unversioned binaries that follow our naming convention there.
55+ << : *COMMON
56+ id : s3-unversioned
57+ targets :
58+ - darwin_amd64
59+ - darwin_arm64
60+ - linux_amd64
61+ - linux_arm64
62+ - windows_amd64
63+ - freebsd_amd64
64+ binary : ' step_latest_{{ .Os }}_{{ .Arch }}'
3765 -
3866 # This build is specifically for nFPM targets (.deb and .rpm files).
3967 # It's exactly the same as the default build above, except:
4068 # - it only builds the archs we want to produce .deb and .rpm files for
4169 # - the name of the output binary is step-cli
70+ << : *COMMON
4271 id : nfpm
43- env :
44- - CGO_ENABLED=0
4572 goos :
4673 - linux
4774 goarch :
4875 - amd64
4976 - arm64
50- flags :
51- - -trimpath
52- main : ./cmd/step/main.go
5377 binary : step-cli
54- ldflags :
55- - -w -X main.Version={{.Version}} -X main.BuildTime={{.Date}}
5678
5779archives :
5880 - &ARCHIVE
@@ -135,7 +157,7 @@ signs:
135157- cmd : cosign
136158 signature : " ${artifact}.sig"
137159 certificate : " ${artifact}.pem"
138- args : ["sign-blob", "--oidc-issuer=https://token.actions.githubusercontent.com", "--output-certificate=${certificate}", "--output-signature=${signature}", "${artifact}"]
160+ args : ["sign-blob", "--oidc-issuer=https://token.actions.githubusercontent.com", "--output-certificate=${certificate}", "--output-signature=${signature}", "${artifact}", "--yes" ]
139161 artifacts : all
140162
141163snapshot :
@@ -174,11 +196,20 @@ release:
174196 header : |
175197 ## Official Release Artifacts
176198
199+ Below are the most popular artifacts for `step` on each platform.
200+
201+ For packaged versions (Homebrew, Scoop, etc.), see our [installation docs](https://smallstep.com/docs/step-cli/installation).
202+
177203 #### Linux
178204
179205 - 📦 [step_linux_{{ .Version }}_amd64.tar.gz](https://dl.smallstep.com/gh-release/cli/gh-release-header/{{ .Tag }}/step_linux_{{ .Version }}_amd64.tar.gz)
206+ - 📦 [step_linux_{{ .Version }}_arm64.tar.gz](https://dl.smallstep.com/gh-release/cli/gh-release-header/{{ .Tag }}/step_linux_{{ .Version }}_arm64.tar.gz)
207+ - 📦 [step_linux_{{ .Version }}_armv7.tar.gz](https://dl.smallstep.com/gh-release/cli/gh-release-header/{{ .Tag }}/step_linux_{{ .Version }}_armv7.tar.gz)
180208 - 📦 [step-cli_{{ .Version }}_amd64.deb](https://dl.smallstep.com/gh-release/cli/gh-release-header/{{ .Tag }}/step-cli_{{ .Version }}_amd64.deb)
181209 - 📦 [step-cli_{{ .Version }}_amd64.rpm](https://dl.smallstep.com/gh-release/cli/gh-release-header/{{ .Tag }}/step-cli_{{ .Version }}_amd64.rpm)
210+ - 📦 [step-cli_{{ .Version }}_arm64.deb](https://dl.smallstep.com/gh-release/cli/gh-release-header/{{ .Tag }}/step-cli_{{ .Version }}_arm64.deb)
211+ - 📦 [step-cli_{{ .Version }}_arm64.rpm](https://dl.smallstep.com/gh-release/cli/gh-release-header/{{ .Tag }}/step-cli_{{ .Version }}_arm64.rpm)
212+ - see `Assets` below for more builds
182213
183214 #### macOS Darwin
184215
@@ -188,12 +219,8 @@ release:
188219 #### Windows
189220
190221 - 📦 [step_windows_{{ .Version }}_amd64.zip](https://dl.smallstep.com/gh-release/cli/gh-release-header/{{ .Tag }}/step_windows_{{ .Version }}_amd64.zip)
222+ - 📦 [step_windows_{{ .Version }}_arm64.zip](https://dl.smallstep.com/gh-release/cli/gh-release-header/{{ .Tag }}/step_windows_{{ .Version }}_arm64.zip)
191223
192- For more builds across platforms and architectures see the `Assets` section below.
193- And for packaged versions (Homebrew, Scoop, etc.), see our [installation docs](https://smallstep.com/docs/step-cli/installation).
194-
195-
196- Don't see the artifact you need? Open an issue [here](https://github.com/smallstep/cli/issues/new/choose).
197224
198225 ## Signatures and Checksums
199226
@@ -219,7 +246,7 @@ release:
219246
220247 Those were the changes on {{ .Tag }}!
221248
222- Come join us on [Discord](https://discord.gg/X2RKGwEbV9) to ask questions, chat about PKI, or get a sneak peak at the freshest PKI memes.
249+ Come join us on [Discord](https://discord.gg/X2RKGwEbV9) to ask questions, chat about PKI, or get a sneak peek at the freshest PKI memes.
223250
224251 # You can disable this pipe in order to not upload any artifacts.
225252 # Defaults to false.
@@ -234,8 +261,33 @@ release:
234261 # - glob: ./glob/**/to/**/file/**/*
235262 # - glob: ./glob/foo/to/bar/file/foobar/override_from_previous
236263
264+ blobs :
265+ - provider : s3
266+ disable : ' false'
267+ ids :
268+ - s3-versioned
269+ bucket : ' {{ .Env.AWS_S3_BUCKET }}'
270+ region : us-east-1
271+ directory : ' /'
272+ acl : public-read
273+ extra_files :
274+ - glob : ./dist/s3-versioned_*/**
275+ extra_files_only : true
276+
277+ - provider : s3
278+ disable : ' {{ if .Prerelease }}true{{ else }}false{{ end }}'
279+ ids :
280+ - s3-unversioned
281+ bucket : ' {{ .Env.AWS_S3_BUCKET }}'
282+ region : us-east-1
283+ directory : ' /'
284+ acl : public-read
285+ extra_files :
286+ - glob : ./dist/s3-unversioned_*/**
287+ extra_files_only : true
288+
237289winget :
238- -
290+ -
239291 # IDs of the archives to use.
240292 # Empty means all IDs.
241293 ids : [ default ]
@@ -305,7 +357,7 @@ winget:
305357 # Release notes URL.
306358 #
307359 # Templates: allowed
308- release_notes_url : " https://github.com/smallstep/cli/releases/tag/{{.Version }}"
360+ release_notes_url : " https://github.com/smallstep/cli/releases/tag/{{ .Tag }}"
309361
310362 # Create the PR - for testing
311363 skip_upload : auto
@@ -319,7 +371,7 @@ winget:
319371 repository :
320372 owner : smallstep
321373 name : winget-pkgs
322- branch : step
374+ branch : " step-{{.Version}} "
323375
324376 # Optionally a token can be provided, if it differs from the token
325377 # provided to GoReleaser
0 commit comments