@@ -7,6 +7,11 @@ version: 2
77
88project_name : example
99
10+ # proxies from the go mod proxy before building
11+ # https://goreleaser.com/customization/gomod
12+ gomod :
13+ proxy : true
14+
1015# setups builds for linux and darwin on amd64 and arm64
1116# https://goreleaser.com/customization/build
1217builds :
@@ -27,22 +32,14 @@ builds:
2732 # only needed if you actually use those things in your main package, otherwise can be ignored.
2833 - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }}
2934
30- # proxies from the go mod proxy before building
31- # https://goreleaser.com/customization/gomod
32- gomod :
33- proxy : true
34-
35- # config the checksum filename
36- # https://goreleaser.com/customization/checksum
37- checksum :
38- name_template : " checksums.txt"
39-
4035# create a source tarball
4136# https://goreleaser.com/customization/source/
4237source :
4338 enabled : true
4439 name_template : " {{ .ProjectName }}.src"
4540
41+ # config the archives filenames, format, and other options.
42+ # https://goreleaser.com/customization/archive
4643archives :
4744 - format : tar.gz
4845 wrap_in_directory : true
@@ -57,6 +54,11 @@ sboms:
5754 - id : source # Two different sbom configurations need two different IDs
5855 artifacts : source
5956
57+ # config the checksum filename
58+ # https://goreleaser.com/customization/checksum
59+ checksum :
60+ name_template : " checksums.txt"
61+
6062# signs the checksum file
6163# all files (including the sboms) are included in the checksum, so we don't need to sign each one if we don't want to
6264# https://goreleaser.com/customization/sign
7375 output : true
7476
7577# create a docker image
76- # https://goreleaser.com/customization/docker
78+ # https://goreleaser.com/customization/dockers_v2
7779dockers_v2 :
7880 - images :
7981 - " ghcr.io/goreleaser/example-secure"
0 commit comments