From 8dd040326f391aaaf6408d6b079ffd1388e109fe Mon Sep 17 00:00:00 2001 From: max furman Date: Tue, 23 Jul 2024 16:34:33 -0700 Subject: [PATCH] Remove s3-versioned builds - use name_template and default builds --- .goreleaser.yml | 43 ++++++++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index f7a543a6f..95e1efdf5 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -35,18 +35,6 @@ builds: - windows_amd64 - windows_arm64 binary: bin/step - - - # This build is for S3 binaries that follow our naming convention there. - << : *BUILD - id: s3-versioned - targets: - - darwin_amd64 - - darwin_arm64 - - linux_amd64 - - linux_arm64 - - windows_amd64 - - freebsd_amd64 - binary: 'step_{{ .Version }}_{{ .Os }}_{{ .Arch }}' - # This build is specifically for nFPM targets (.deb and .rpm files). # It's exactly the same as the default build above, except: @@ -252,30 +240,43 @@ blobs: provider: s3 disable: 'false' ids: - - s3-versioned + - default bucket: '{{ .Env.AWS_S3_BUCKET }}' - region: '{{ .Env.AWS_REGION }}' + region: '{{ .Env.AWS_S3_REGION }}' directory: '/' acl: public-read extra_files: - - glob: ./dist/s3-versioned_*/** + - glob: ./dist/default_darwin_amd64_v1/bin/step + name_template: step_{{ .Version }}_darwin_amd64 + - glob: ./dist/default_darwin_arm64/bin/step + name_template: step_{{ .Version }}_darwin_arm64 + - glob: ./dist/default_linux_amd64_v1/bin/step + name_template: step_{{ .Version }}_linux_amd64 + - glob: ./dist/default_linux_arm64/bin/step + name_template: step_{{ .Version }}_linux_arm64 + - glob: ./dist/default_windows_arm64/bin/step.exe + name_template: step_{{ .Version }}_windows_amd64.exe + - glob: ./dist/default_freebsd_*/bin/step + name_template: step_{{ .Version }}_freebsd_amd64 extra_files_only: true + # Unversioned (`latest`) copies of binaries. + # This section should only run on full releases (not prereleases). - << : *S3_VERSIONED disable: '{{ if .Prerelease }}true{{ else }}false{{ end }}' extra_files: - - glob: ./dist/s3-versioned_*/*_darwin_amd64 + - glob: ./dist/default_darwin_amd64_v1/bin/step name_template: step_latest_darwin_amd64 - - glob: ./dist/s3-versioned_*/*_darwin_arm64 + - glob: ./dist/default_darwin_arm64/bin/step name_template: step_latest_darwin_arm64 - - glob: ./dist/s3-versioned_*/*_linux_amd64 + - glob: ./dist/default_linux_amd64_v1/bin/step name_template: step_latest_linux_amd64 - - glob: ./dist/s3-versioned_*/*_linux_arm64 + - glob: ./dist/default_linux_arm64/bin/step name_template: step_latest_linux_arm64 - - glob: ./dist/s3-versioned_*/*_windows_amd64.exe + - glob: ./dist/default_windows_arm64/bin/step.exe name_template: step_latest_windows_amd64.exe - - glob: ./dist/s3-versioned_*/*_freebsd_amd64 + - glob: ./dist/default_freebsd_*/bin/step name_template: step_latest_freebsd_amd64 extra_files_only: true