Skip to content

Commit 00f209d

Browse files
committed
[ci] remove duplicate s3 unversioned builds in favor of name_templates
1 parent 28c568e commit 00f209d

File tree

1 file changed

+17
-22
lines changed

1 file changed

+17
-22
lines changed

.goreleaser.yml

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,6 @@ builds:
4747
- windows_amd64
4848
- freebsd_amd64
4949
binary: 'step_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
50-
-
51-
# This build is for S3 unversioned binaries that follow our naming convention there.
52-
<< : *BUILD
53-
id: s3-unversioned
54-
targets:
55-
- darwin_amd64
56-
- darwin_arm64
57-
- linux_amd64
58-
- linux_arm64
59-
- windows_amd64
60-
- freebsd_amd64
61-
binary: 'step_latest_{{ .Os }}_{{ .Arch }}'
6250
-
6351
# This build is specifically for nFPM targets (.deb and .rpm files).
6452
# It's exactly the same as the default build above, except:
@@ -260,28 +248,35 @@ release:
260248
# - glob: ./glob/foo/to/bar/file/foobar/override_from_previous
261249

262250
blobs:
263-
- provider: s3
251+
- &S3_VERSIONED
252+
provider: s3
264253
disable: 'false'
265254
ids:
266255
- s3-versioned
267256
bucket: '{{ .Env.AWS_S3_BUCKET }}'
268-
region: us-east-1
257+
region: '{{ .Env.AWS_REGION }}'
269258
directory: '/'
270259
acl: public-read
271260
extra_files:
272261
- glob: ./dist/s3-versioned_*/**
273262
extra_files_only: true
274263

275-
- provider: s3
264+
-
265+
<< : *S3_VERSIONED
276266
disable: '{{ if .Prerelease }}true{{ else }}false{{ end }}'
277-
ids:
278-
- s3-unversioned
279-
bucket: '{{ .Env.AWS_S3_BUCKET }}'
280-
region: us-east-1
281-
directory: '/'
282-
acl: public-read
283267
extra_files:
284-
- glob: ./dist/s3-unversioned_*/**
268+
- glob: ./dist/s3-versioned_*/*_darwin_amd64
269+
name_template: step_latest_darwin_amd64
270+
- glob: ./dist/s3-versioned_*/*_darwin_arm64
271+
name_template: step_latest_darwin_arm64
272+
- glob: ./dist/s3-versioned_*/*_linux_amd64
273+
name_template: step_latest_linux_amd64
274+
- glob: ./dist/s3-versioned_*/*_linux_arm64
275+
name_template: step_latest_linux_arm64
276+
- glob: ./dist/s3-versioned_*/*_windows_amd64.exe
277+
name_template: step_latest_windows_amd64.exe
278+
- glob: ./dist/s3-versioned_*/*_freebsd_amd64
279+
name_template: step_latest_freebsd_amd64
285280
extra_files_only: true
286281

287282
winget:

0 commit comments

Comments
 (0)