Skip to content

Commit

Permalink
chore(goreleaser): prefix with v, add cosign.pub to release assets
Browse files Browse the repository at this point in the history
  • Loading branch information
ekristen committed Dec 15, 2021
1 parent 18e7fc6 commit 12c4bfc
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ release:
github:
owner: ekristen
name: aws-nuke
extra_files:
- glob: ./cosign.pub
builds:
- id: default
goos:
Expand Down Expand Up @@ -31,7 +33,7 @@ archives:
- id: default
builds:
- default
name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ .Arm }}"
name_template: "{{ .ProjectName }}-v{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ .Arm }}"
format_overrides:
- goos: windows
format: zip
Expand All @@ -41,7 +43,7 @@ dockers:
goarch: amd64
dockerfile: Dockerfile.goreleaser
image_templates:
- ghcr.io/ekristen/aws-nuke:{{ .Version }}-amd64
- ghcr.io/ekristen/aws-nuke:v{{ .Version }}-amd64
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
Expand All @@ -55,7 +57,7 @@ dockers:
goarch: arm64
dockerfile: Dockerfile.goreleaser
image_templates:
- ghcr.io/ekristen/aws-nuke:{{ .Version }}-arm64
- ghcr.io/ekristen/aws-nuke:v{{ .Version }}-arm64
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
Expand All @@ -70,7 +72,7 @@ dockers:
goarm: "7"
dockerfile: Dockerfile.goreleaser
image_templates:
- ghcr.io/ekristen/aws-nuke:{{ .Version }}-arm32v7
- ghcr.io/ekristen/aws-nuke:v{{ .Version }}-arm32v7
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
Expand All @@ -81,11 +83,11 @@ dockers:
- "--platform=linux/arm/v7"
docker_manifests:
- use: docker
name_template: ghcr.io/ekristen/aws-nuke:{{ .Version }}
name_template: ghcr.io/ekristen/aws-nuke:v{{ .Version }}
image_templates:
- ghcr.io/ekristen/aws-nuke:{{ .Version }}-amd64
- ghcr.io/ekristen/aws-nuke:{{ .Version }}-arm64
- ghcr.io/ekristen/aws-nuke:{{ .Version }}-arm32v7
- ghcr.io/ekristen/aws-nuke:v{{ .Version }}-amd64
- ghcr.io/ekristen/aws-nuke:v{{ .Version }}-arm64
- ghcr.io/ekristen/aws-nuke:v{{ .Version }}-arm32v7
signs:
- cmd: cosign
stdin: "{{ .Env.COSIGN_PASSWORD }}"
Expand All @@ -98,7 +100,7 @@ docker_signs:
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Summary }}"
name_template: '{{ trimprefix .Summary "v" }}'
changelog:
sort: asc
filters:
Expand Down

0 comments on commit 12c4bfc

Please sign in to comment.