update configuration to v2

Signed-off-by: Terry Howe <terrylhowe@gmail.com>
pull/31343/head
Terry Howe 2 months ago
parent 40ee6f1697
commit 6ad1cc9a09
No known key found for this signature in database

@ -1,3 +1,5 @@
version: 2
project_name: helm
before:
@ -50,7 +52,7 @@ builds:
dir: .
archives:
- format: tar.gz
- id: default
# this name template makes the OS and Arch compatible with the results of uname.
name_template: >-
{{ .ProjectName }}-
@ -59,16 +61,15 @@ archives:
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- README.md
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
version_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc

@ -170,7 +170,8 @@ gen-test-golden: test-unit
# without a go.mod file when downloading the following dependencies
$(GORELEASER):
(cd /; go install github.com/goreleaser/goreleaser@latest)
echo go install github.com/goreleaser/goreleaser/v2@latest
(cd /; go install github.com/goreleaser/goreleaser/v2@latest)
$(GOIMPORTS):
(cd /; go install golang.org/x/tools/cmd/goimports@latest)

Loading…
Cancel
Save