Skip to content

Commit 1663c3b

Browse files
Merge pull request #247 from cert-manager/goreleaser-v2
Use goreleaser v2
2 parents 1260250 + c44cb60 commit 1663c3b

File tree

4 files changed

+18
-16
lines changed

4 files changed

+18
-16
lines changed

.goreleaser.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
version: 2
2+
13
# Our Makefile will automatically add additional settings
24
# to this builds array (environment variables, flags, ...)
35
builds:
@@ -33,11 +35,11 @@ signs:
3335

3436
archives:
3537
- name_template: "{{ .Binary }}_{{ .Os }}_{{ .Arch }}"
36-
format: binary
37-
38+
formats: ["binary"]
39+
3840
- id: tar-gz-archives
3941
name_template: "{{ .Binary }}_{{ .Os }}_{{ .Arch }}"
40-
format: tar.gz
42+
formats: ["tar.gz"]
4143

4244
release:
4345
draft: true

klone.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,45 +10,45 @@ targets:
1010
- folder_name: boilerplate
1111
repo_url: https://github.com/cert-manager/makefile-modules.git
1212
repo_ref: main
13-
repo_hash: 292a53c31aee0d1909bd25f204c602aad911f3a4
13+
repo_hash: e869982cec38c8ecfdb899fc63dd4e148e509fa5
1414
repo_path: modules/boilerplate
1515
- folder_name: cert-manager
1616
repo_url: https://github.com/cert-manager/makefile-modules.git
1717
repo_ref: main
18-
repo_hash: 292a53c31aee0d1909bd25f204c602aad911f3a4
18+
repo_hash: e869982cec38c8ecfdb899fc63dd4e148e509fa5
1919
repo_path: modules/cert-manager
2020
- folder_name: executable
2121
repo_url: https://github.com/cert-manager/makefile-modules.git
2222
repo_ref: main
23-
repo_hash: 292a53c31aee0d1909bd25f204c602aad911f3a4
23+
repo_hash: e869982cec38c8ecfdb899fc63dd4e148e509fa5
2424
repo_path: modules/executable
2525
- folder_name: generate-verify
2626
repo_url: https://github.com/cert-manager/makefile-modules.git
2727
repo_ref: main
28-
repo_hash: 292a53c31aee0d1909bd25f204c602aad911f3a4
28+
repo_hash: e869982cec38c8ecfdb899fc63dd4e148e509fa5
2929
repo_path: modules/generate-verify
3030
- folder_name: go
3131
repo_url: https://github.com/cert-manager/makefile-modules.git
3232
repo_ref: main
33-
repo_hash: 292a53c31aee0d1909bd25f204c602aad911f3a4
33+
repo_hash: e869982cec38c8ecfdb899fc63dd4e148e509fa5
3434
repo_path: modules/go
3535
- folder_name: help
3636
repo_url: https://github.com/cert-manager/makefile-modules.git
3737
repo_ref: main
38-
repo_hash: 292a53c31aee0d1909bd25f204c602aad911f3a4
38+
repo_hash: e869982cec38c8ecfdb899fc63dd4e148e509fa5
3939
repo_path: modules/help
4040
- folder_name: klone
4141
repo_url: https://github.com/cert-manager/makefile-modules.git
4242
repo_ref: main
43-
repo_hash: 292a53c31aee0d1909bd25f204c602aad911f3a4
43+
repo_hash: e869982cec38c8ecfdb899fc63dd4e148e509fa5
4444
repo_path: modules/klone
4545
- folder_name: repository-base
4646
repo_url: https://github.com/cert-manager/makefile-modules.git
4747
repo_ref: main
48-
repo_hash: 292a53c31aee0d1909bd25f204c602aad911f3a4
48+
repo_hash: e869982cec38c8ecfdb899fc63dd4e148e509fa5
4949
repo_path: modules/repository-base
5050
- folder_name: tools
5151
repo_url: https://github.com/cert-manager/makefile-modules.git
5252
repo_ref: main
53-
repo_hash: 292a53c31aee0d1909bd25f204c602aad911f3a4
53+
repo_hash: e869982cec38c8ecfdb899fc63dd4e148e509fa5
5454
repo_path: modules/tools

make/_shared/executable/01_mod.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ define template_for_target
5757
$(YQ) 'with(.builds[]; select(.id == "$(1)") | .ldflags[0] = "-s")' | \
5858
$(YQ) 'with(.builds[]; select(.id == "$(1)") | .ldflags[1] = "-w")' | \
5959
$(YQ) 'with(.builds[]; select(.id == "$(1)") | .ldflags[2] = "$(go_$1_ldflags)")' | \
60-
$(YQ) 'with(.builds[]; select(.id == "$(1)") | .gobinary = "$(GO)")' | \
60+
$(YQ) 'with(.builds[]; select(.id == "$(1)") | .tool = "$(GO)")' | \
6161
targets=$(exe_targets) $(YQ) 'with(.builds[]; select(.id == "$(1)") | .targets = (env(targets) | split(",")))' |
6262
endef
6363

make/_shared/tools/00_mod.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ detected_ginkgo_version := $(shell [[ -f go.mod ]] && awk '/ginkgo\/v2/ {print $
121121
tools += ginkgo=$(detected_ginkgo_version)
122122
# https://pkg.go.dev/github.com/cert-manager/klone?tab=versions
123123
tools += klone=v0.2.0
124-
# https://pkg.go.dev/github.com/goreleaser/goreleaser?tab=versions
125-
tools += goreleaser=v1.26.2
124+
# https://pkg.go.dev/github.com/goreleaser/goreleaser/v2?tab=versions
125+
tools += goreleaser=v2.11.0
126126
# https://pkg.go.dev/github.com/anchore/syft/cmd/syft?tab=versions
127127
tools += syft=v1.28.0
128128
# https://github.com/cert-manager/helm-tool/releases
@@ -338,7 +338,7 @@ go_dependencies += boilersuite=github.com/cert-manager/boilersuite
338338
go_dependencies += gomarkdoc=github.com/princjef/gomarkdoc/cmd/gomarkdoc
339339
go_dependencies += oras=oras.land/oras/cmd/oras
340340
go_dependencies += klone=github.com/cert-manager/klone
341-
go_dependencies += goreleaser=github.com/goreleaser/goreleaser
341+
go_dependencies += goreleaser=github.com/goreleaser/goreleaser/v2
342342
go_dependencies += syft=github.com/anchore/syft/cmd/syft
343343
go_dependencies += client-gen=k8s.io/code-generator/cmd/client-gen
344344
go_dependencies += deepcopy-gen=k8s.io/code-generator/cmd/deepcopy-gen

0 commit comments

Comments
 (0)