@@ -33,15 +33,15 @@ builds:
33
33
# Defaults are darwin and linux.
34
34
goos :
35
35
- linux
36
- # - windows
37
- # - darwin
36
+ - windows
37
+ - darwin
38
38
39
39
# GOARCH to build for.
40
40
# For more info refer to: https://golang.org/doc/install/source#environment
41
41
# Defaults are 386, amd64 and arm64.
42
42
goarch :
43
43
- amd64
44
- # - arm64
44
+ - arm64
45
45
46
46
# # GOARM to build for when GOARCH is arm.
47
47
# # For more info refer to: https://golang.org/doc/install/source#environment
@@ -57,86 +57,86 @@ builds:
57
57
# - v2
58
58
# - v3
59
59
60
- # dockers:
61
- # # You can declare multiple Docker images.
62
- # # They will be matched against the binaries generated by your builds section
63
- # # and packages generated by your nfpms section.
60
+ dockers :
61
+ # You can declare multiple Docker images.
62
+ # They will be matched against the binaries generated by your builds section
63
+ # and packages generated by your nfpms section.
64
64
65
- # # Templates of the Docker image names.
66
- # # if prefix URL, docker img will push.
67
- # - image_templates:
68
- # - "docker.io/brothersam/guanceexample:{{ .Version }}-amd64"
69
- # # - "gcr.io/brothersam/guanceexample:{{ .Version }}"
70
- # # - "brothersam/guanceexample:{{ .Version }}"
71
-
72
- # # GOOS of the built binaries/packages that should be used.
73
- # # goos: linux
74
-
75
- # # GOARCH of the built binaries/packages that should be used.
76
- # goarch: amd64
77
-
78
- # # GOAMD64 of the built binaries/packages that should be used.
79
- # # goamd64: 'v2'
80
-
81
- # # Skips the docker push.
82
- # # Could be useful if you also do draft releases.
83
- # # If set to auto, the release will not be pushed to the Docker repository
84
- # # in case there is an indicator of a prerelease in the tag, e.g. v1.0.0-rc1.
85
- # # Defaults to false.
86
- # skip_push: false
87
-
88
- # # Path to the Dockerfile (from the project root).
89
- # # Defaults to `Dockerfile`.
90
- # dockerfile: Dockerfile
91
-
92
- # # Set the "backend" for the Docker pipe.
93
- # # Valid options are: docker, buildx, podman.
94
- # # podman is a GoReleaser Pro feature and is only available on Linux.
95
- # # Defaults to docker.
96
- # use: docker
97
-
98
- # # Template of the docker build flags.
99
- # build_flag_templates:
100
- # - --platform=linux/amd64
101
- # # - --label=org.opencontainers.image.title={{ .ProjectName }}
102
- # # - --label=org.opencontainers.image.description={{ .ProjectName }}
103
- # # - --label=org.opencontainers.image.url=https://github.com/brothersam66/testgoreleaser
104
- # # - --label=org.opencontainers.image.source=https://github.com/brothersam66/testgoreleaser
105
- # # - --label=org.opencontainers.image.version={{ .Version }}
106
- # # - --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
107
- # # - --label=org.opencontainers.image.revision={{ .FullCommit }}
108
- # # - --label=org.opencontainers.image.licenses=MIT
109
-
110
- # - image_templates:
111
- # - "docker.io/brothersam/guanceexample:{{ .Version }}-arm64v8"
112
- # # goos: linux
113
- # goarch: arm64
114
- # # goarm: 'v6'
115
- # skip_push: false
116
- # dockerfile: Dockerfile
117
- # use: docker
118
- # build_flag_templates:
119
- # - --platform=linux/arm64/v8
120
- # # - --label=org.opencontainers.image.title={{ .ProjectName }}
121
- # # - --label=org.opencontainers.image.description={{ .ProjectName }}
122
- # # - --label=org.opencontainers.image.url=https://github.com/brothersam66/testgoreleaser
123
- # # - --label=org.opencontainers.image.source=https://github.com/brothersam66/testgoreleaser
124
- # # - --label=org.opencontainers.image.version={{ .Version }}
125
- # # - --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
126
- # # - --label=org.opencontainers.image.revision={{ .FullCommit }}
127
- # # - --label=org.opencontainers.image.licenses=MIT
128
-
129
-
130
- # # GoReleaser can be wired to nfpm to generate and publish .deb, .rpm and .apk packages.
131
- # nfpms:
132
- # - maintainer: Carlos A Becker <[email protected] >
133
- # description: Sample project.
134
- # homepage: https://github.com/brothersam66/tasktimer
135
- # license: MIT
136
- # formats:
137
- # - deb
138
- # - rpm
139
- # - apk
65
+ # Templates of the Docker image names.
66
+ # if prefix URL, docker img will push.
67
+ - image_templates :
68
+ - " docker.io/brothersam/guanceexample:{{ .Version }}-amd64"
69
+ # - "gcr.io/brothersam/guanceexample:{{ .Version }}"
70
+ # - "brothersam/guanceexample:{{ .Version }}"
71
+
72
+ # GOOS of the built binaries/packages that should be used.
73
+ # goos: linux
74
+
75
+ # GOARCH of the built binaries/packages that should be used.
76
+ goarch : amd64
77
+
78
+ # GOAMD64 of the built binaries/packages that should be used.
79
+ # goamd64: 'v2'
80
+
81
+ # Skips the docker push.
82
+ # Could be useful if you also do draft releases.
83
+ # If set to auto, the release will not be pushed to the Docker repository
84
+ # in case there is an indicator of a prerelease in the tag, e.g. v1.0.0-rc1.
85
+ # Defaults to false.
86
+ skip_push : false
87
+
88
+ # Path to the Dockerfile (from the project root).
89
+ # Defaults to `Dockerfile`.
90
+ dockerfile : Dockerfile
91
+
92
+ # Set the "backend" for the Docker pipe.
93
+ # Valid options are: docker, buildx, podman.
94
+ # podman is a GoReleaser Pro feature and is only available on Linux.
95
+ # Defaults to docker.
96
+ use : docker
97
+
98
+ # Template of the docker build flags.
99
+ build_flag_templates :
100
+ - --platform=linux/amd64
101
+ - --label=org.opencontainers.image.title={{ .ProjectName }}
102
+ - --label=org.opencontainers.image.description={{ .ProjectName }}
103
+ - --label=org.opencontainers.image.url=https://github.com/brothersam66/testgoreleaser
104
+ - --label=org.opencontainers.image.source=https://github.com/brothersam66/testgoreleaser
105
+ - --label=org.opencontainers.image.version={{ .Version }}
106
+ - --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
107
+ - --label=org.opencontainers.image.revision={{ .FullCommit }}
108
+ - --label=org.opencontainers.image.licenses=MIT
109
+
110
+ - image_templates :
111
+ - " docker.io/brothersam/guanceexample:{{ .Version }}-arm64v8"
112
+ # goos: linux
113
+ goarch : arm64
114
+ # goarm: 'v6'
115
+ skip_push : false
116
+ dockerfile : Dockerfile
117
+ use : docker
118
+ build_flag_templates :
119
+ - --platform=linux/arm64/v8
120
+ - --label=org.opencontainers.image.title={{ .ProjectName }}
121
+ - --label=org.opencontainers.image.description={{ .ProjectName }}
122
+ - --label=org.opencontainers.image.url=https://github.com/brothersam66/testgoreleaser
123
+ - --label=org.opencontainers.image.source=https://github.com/brothersam66/testgoreleaser
124
+ - --label=org.opencontainers.image.version={{ .Version }}
125
+ - --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
126
+ - --label=org.opencontainers.image.revision={{ .FullCommit }}
127
+ - --label=org.opencontainers.image.licenses=MIT
128
+
129
+
130
+ # GoReleaser can be wired to nfpm to generate and publish .deb, .rpm and .apk packages.
131
+ nfpms :
132
+ -
maintainer :
Carlos A Becker <[email protected] >
133
+ description : Sample project.
134
+ homepage : https://github.com/brothersam66/tasktimer
135
+ license : MIT
136
+ formats :
137
+ - deb
138
+ - rpm
139
+ - apk
140
140
141
141
142
142
env_files :
@@ -145,49 +145,49 @@ env_files:
145
145
# setup ENV github token: $ export GITHUB_TOKEN="YOUR_GH_TOKEN"
146
146
github_token : ~/go/src/github.com/github_token
147
147
148
- # changelog:
149
- # # Set this to true if you don't want any changelog at all.
150
- # # Warning: this will also ignore any changelog files passed via `--release-notes`,
151
- # # and will render an empty changelog.
152
- # # This may result in an empty release notes on GitHub/GitLab/Gitea.
153
- # skip: false
154
-
155
- # # Changelog generation implementation to use.
156
- # #
157
- # # Valid options are:
158
- # # - `git`: uses `git log`;
159
- # # - `github`: uses the compare GitHub API, appending the author login to the changelog.
160
- # # - `gitlab`: uses the compare GitLab API, appending the author name and email to the changelog.
161
- # # - `github-native`: uses the GitHub release notes generation API, disables the groups feature.
162
- # #
163
- # # Defaults to `git`.
164
- # use: github-native
165
-
166
- # # Sorts the changelog by the commit's messages.
167
- # # Could either be asc, desc or empty
168
- # # Default is empty
169
- # sort: asc
170
-
171
- # # Max commit hash length to use in the changelog.
172
- # #
173
- # # 0: use whatever the changelog implementation gives you
174
- # # -1: remove the commit hash from the changelog
175
- # # any other number: max length.
176
- # #
177
- # # Default: 0.
178
- # abbrev: 0
179
-
180
- # # Group commits messages by given regex and title.
181
- # # Order value defines the order of the groups.
182
- # # Proving no regex means all commits will be grouped under the default group.
183
- # # Groups are disabled when using github-native, as it already groups things by itself.
184
- # #
185
- # # Default is no groups.
186
- # filters:
187
- # # Commit messages matching the regexp listed here will be removed from
188
- # # the changelog
189
- # # Default is empty
190
- # exclude:
191
- # - '^docs:'
192
- # - typo
148
+ changelog :
149
+ # Set this to true if you don't want any changelog at all.
150
+ # Warning: this will also ignore any changelog files passed via `--release-notes`,
151
+ # and will render an empty changelog.
152
+ # This may result in an empty release notes on GitHub/GitLab/Gitea.
153
+ skip : false
154
+
155
+ # Changelog generation implementation to use.
156
+ #
157
+ # Valid options are:
158
+ # - `git`: uses `git log`;
159
+ # - `github`: uses the compare GitHub API, appending the author login to the changelog.
160
+ # - `gitlab`: uses the compare GitLab API, appending the author name and email to the changelog.
161
+ # - `github-native`: uses the GitHub release notes generation API, disables the groups feature.
162
+ #
163
+ # Defaults to `git`.
164
+ use : github-native
165
+
166
+ # Sorts the changelog by the commit's messages.
167
+ # Could either be asc, desc or empty
168
+ # Default is empty
169
+ sort : asc
170
+
171
+ # Max commit hash length to use in the changelog.
172
+ #
173
+ # 0: use whatever the changelog implementation gives you
174
+ # -1: remove the commit hash from the changelog
175
+ # any other number: max length.
176
+ #
177
+ # Default: 0.
178
+ abbrev : 0
179
+
180
+ # Group commits messages by given regex and title.
181
+ # Order value defines the order of the groups.
182
+ # Proving no regex means all commits will be grouped under the default group.
183
+ # Groups are disabled when using github-native, as it already groups things by itself.
184
+ #
185
+ # Default is no groups.
186
+ filters :
187
+ # Commit messages matching the regexp listed here will be removed from
188
+ # the changelog
189
+ # Default is empty
190
+ exclude :
191
+ - ' ^docs:'
192
+ - typo
193
193
0 commit comments