Skip to content

Commit 710e127

Browse files
committed
fix: sort config blocks better
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
1 parent 0684000 commit 710e127

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

.goreleaser.yaml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ version: 2
77

88
project_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
1217
builds:
@@ -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/
4237
source:
4338
enabled: true
4439
name_template: "{{ .ProjectName }}.src"
4540

41+
# config the archives filenames, format, and other options.
42+
# https://goreleaser.com/customization/archive
4643
archives:
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
@@ -73,7 +75,7 @@ signs:
7375
output: true
7476

7577
# create a docker image
76-
# https://goreleaser.com/customization/docker
78+
# https://goreleaser.com/customization/dockers_v2
7779
dockers_v2:
7880
- images:
7981
- "ghcr.io/goreleaser/example-secure"

0 commit comments

Comments
 (0)