update configuration to v2

Signed-off-by: Terry Howe <terrylhowe@gmail.com>
pull/31343/head
Terry Howe 11 months ago
parent e7bea8513c
commit e368f170af
No known key found for this signature in database

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

@ -163,7 +163,8 @@ gen-test-golden: test-unit
# without a go.mod file when downloading the following dependencies # without a go.mod file when downloading the following dependencies
$(GORELEASER): $(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): $(GOIMPORTS):
(cd /; go install golang.org/x/tools/cmd/goimports@latest) (cd /; go install golang.org/x/tools/cmd/goimports@latest)

Loading…
Cancel
Save