1
- # .goreleaser.yaml
2
- builds :
3
- - env :
1
+ # The project name is used in the name of the Brew formula, archives, etc.
2
+ # If none is given, it will be inferred from the name of the GitHub, GitLab, or Gitea release.
3
+ project_name : guanceexample
4
+ before :
5
+ hooks :
6
+ - go mod tidy
7
+
8
+ env :
9
+ - GO111MODULE=on
4
10
- CGO_ENABLED=0
5
- binary : guanceexample
6
- goos :
7
- - linux
8
- goarch :
9
- - amd64
10
- - arm64
11
+
12
+ builds :
13
+ # You can have multiple builds defined as a yaml list
14
+ # - main: ./cmd/cli
15
+ # id: "cli"
16
+ # binary: cli
17
+ # - main: ./cmd/worker
18
+ # id: "worker"
19
+ # binary: worker
20
+
21
+ # Path to main.go file or main package.
22
+ # Notice: when used with `gomod.proxy`, this must be a package.
23
+ # Default is `.`.
24
+ - main : .
25
+
26
+ # Binary name.
27
+ # Can be a path (e.g. `bin/app`) to wrap the binary in a directory.
28
+ # Default is the name of the project directory.
29
+ binary : guanceexample
30
+
31
+ # GOOS list to build for.
32
+ # For more info refer to: https://golang.org/doc/install/source#environment
33
+ # Defaults are darwin and linux.
34
+ goos :
35
+ - linux
36
+ # - windows
37
+ # - darwin
38
+
39
+ # GOARCH to build for.
40
+ # For more info refer to: https://golang.org/doc/install/source#environment
41
+ # Defaults are 386, amd64 and arm64.
42
+ goarch :
43
+ - amd64
44
+ - arm64
45
+
46
+ # # GOARM to build for when GOARCH is arm.
47
+ # # For more info refer to: https://golang.org/doc/install/source#environment
48
+ # # Default is only 6.
49
+ # goarm:
50
+ # - 6
51
+ # # - 7
52
+
53
+ # # GOAMD64 to build when GOARCH is amd64.
54
+ # # For more info refer to: https://golang.org/doc/install/source#environment
55
+ # # Default is only v1.
56
+ # goamd64:
57
+ # - v2
58
+ # - v3
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.
64
+
65
+ # Templates of the Docker image names.
66
+ # if prefix URL, docker img will push.
67
+ # - image_templates:
68
+ # - "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
+ # - "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
+
11
129
dockers :
12
130
- image_templates :
13
131
- " brothersam/guanceexample:{{ .Version }}-amd64"
@@ -22,155 +140,7 @@ dockers:
22
140
dockerfile : Dockerfile
23
141
build_flag_templates :
24
142
- " --platform=linux/arm64/v8"
25
- # docker_manifests:
26
- # - name_template: brothersam/guanceexample:{{ .Version }}
27
- # image_templates:
28
- # - brothersam/guanceexample:{{ .Version }}-amd64
29
- # - brothersam/guanceexample:{{ .Version }}-arm64v8
30
-
31
143
32
- # # The project name is used in the name of the Brew formula, archives, etc.
33
- # # If none is given, it will be inferred from the name of the GitHub, GitLab, or Gitea release.
34
- # project_name: guanceexample
35
- # before:
36
- # hooks:
37
- # - go mod tidy
38
-
39
- # env:
40
- # - GO111MODULE=on
41
- # - CGO_ENABLED=0
42
-
43
- # builds:
44
- # # You can have multiple builds defined as a yaml list
45
- # # - main: ./cmd/cli
46
- # # id: "cli"
47
- # # binary: cli
48
- # # - main: ./cmd/worker
49
- # # id: "worker"
50
- # # binary: worker
51
-
52
- # # Path to main.go file or main package.
53
- # # Notice: when used with `gomod.proxy`, this must be a package.
54
- # # Default is `.`.
55
- # - main: .
56
-
57
- # # Binary name.
58
- # # Can be a path (e.g. `bin/app`) to wrap the binary in a directory.
59
- # # Default is the name of the project directory.
60
- # binary: guanceexample
61
-
62
- # # GOOS list to build for.
63
- # # For more info refer to: https://golang.org/doc/install/source#environment
64
- # # Defaults are darwin and linux.
65
- # goos:
66
- # - linux
67
- # # - windows
68
- # # - darwin
69
-
70
- # # GOARCH to build for.
71
- # # For more info refer to: https://golang.org/doc/install/source#environment
72
- # # Defaults are 386, amd64 and arm64.
73
- # goarch:
74
- # - amd64
75
- # - arm64
76
-
77
- # # # GOARM to build for when GOARCH is arm.
78
- # # # For more info refer to: https://golang.org/doc/install/source#environment
79
- # # # Default is only 6.
80
- # # goarm:
81
- # # - 6
82
- # # # - 7
83
-
84
- # # # GOAMD64 to build when GOARCH is amd64.
85
- # # # For more info refer to: https://golang.org/doc/install/source#environment
86
- # # # Default is only v1.
87
- # # goamd64:
88
- # # - v2
89
- # # - v3
90
-
91
- # # dockers:
92
- # # You can declare multiple Docker images.
93
- # # They will be matched against the binaries generated by your builds section
94
- # # and packages generated by your nfpms section.
95
-
96
- # # Templates of the Docker image names.
97
- # # if prefix URL, docker img will push.
98
- # # - image_templates:
99
- # # - "brothersam/guanceexample:{{ .Version }}-amd64"
100
- # # - "gcr.io/brothersam/guanceexample:{{ .Version }}"
101
- # # - "brothersam/guanceexample:{{ .Version }}"
102
-
103
- # # GOOS of the built binaries/packages that should be used.
104
- # # goos: linux
105
-
106
- # # GOARCH of the built binaries/packages that should be used.
107
- # # goarch: amd64
108
-
109
- # # # GOAMD64 of the built binaries/packages that should be used.
110
- # # # goamd64: 'v2'
111
-
112
- # # # Skips the docker push.
113
- # # # Could be useful if you also do draft releases.
114
- # # # If set to auto, the release will not be pushed to the Docker repository
115
- # # # in case there is an indicator of a prerelease in the tag, e.g. v1.0.0-rc1.
116
- # # # Defaults to false.
117
- # # skip_push: false
118
-
119
- # # # Path to the Dockerfile (from the project root).
120
- # # # Defaults to `Dockerfile`.
121
- # # dockerfile: Dockerfile
122
-
123
- # # # Set the "backend" for the Docker pipe.
124
- # # # Valid options are: docker, buildx, podman.
125
- # # # podman is a GoReleaser Pro feature and is only available on Linux.
126
- # # # Defaults to docker.
127
- # # use: docker
128
-
129
- # # # Template of the docker build flags.
130
- # # build_flag_templates:
131
- # # - --platform=linux/amd64
132
- # # - --label=org.opencontainers.image.title={{ .ProjectName }}
133
- # # - --label=org.opencontainers.image.description={{ .ProjectName }}
134
- # # - --label=org.opencontainers.image.url=https://github.com/brothersam66/testgoreleaser
135
- # # - --label=org.opencontainers.image.source=https://github.com/brothersam66/testgoreleaser
136
- # # - --label=org.opencontainers.image.version={{ .Version }}
137
- # # - --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
138
- # # - --label=org.opencontainers.image.revision={{ .FullCommit }}
139
- # # - --label=org.opencontainers.image.licenses=MIT
140
-
141
- # # - image_templates:
142
- # # - "brothersam/guanceexample:{{ .Version }}-arm64v8"
143
- # # # goos: linux
144
- # # goarch: arm64
145
- # # # goarm: 'v6'
146
- # # skip_push: false
147
- # # dockerfile: Dockerfile
148
- # # use: docker
149
- # # build_flag_templates:
150
- # # - --platform=linux/arm64/v8
151
- # # - --label=org.opencontainers.image.title={{ .ProjectName }}
152
- # # - --label=org.opencontainers.image.description={{ .ProjectName }}
153
- # # - --label=org.opencontainers.image.url=https://github.com/brothersam66/testgoreleaser
154
- # # - --label=org.opencontainers.image.source=https://github.com/brothersam66/testgoreleaser
155
- # # - --label=org.opencontainers.image.version={{ .Version }}
156
- # # - --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
157
- # # - --label=org.opencontainers.image.revision={{ .FullCommit }}
158
- # # - --label=org.opencontainers.image.licenses=MIT
159
-
160
- # dockers:
161
- # - image_templates:
162
- # - "brothersam/guanceexample:{{ .Version }}-amd64"
163
- # use: docker
164
- # dockerfile: Dockerfile
165
- # build_flag_templates:
166
- # - "--platform=linux/amd64"
167
- # - image_templates:
168
- # - "brothersam/guanceexample:{{ .Version }}-arm64v8"
169
- # use: docker
170
- # goarch: arm64
171
- # dockerfile: Dockerfile
172
- # build_flag_templates:
173
- # - "--platform=linux/arm64/v8"
174
144
# docker_manifests:
175
145
# -
176
146
# id: myimg
@@ -186,50 +156,50 @@ dockers:
186
156
# # use: docker
187
157
188
158
189
- # # # GoReleaser can be wired to nfpm to generate and publish .deb, .rpm and .apk packages.
190
- # # nfpms:
191
- # # - maintainer: Carlos A Becker <[email protected] >
192
- # # description: Sample project.
193
- # # homepage: https://github.com/brothersam66/tasktimer
194
- # # license: MIT
195
- # # formats:
196
- # # - deb
197
- # # - rpm
198
- # # - apk
199
-
200
-
201
- # env_files:
202
- # github_token: ~/go/src/github.com/github_token
203
-
204
- # # changelog:
205
- # # # Set this to true if you don't want any changelog at all.
206
- # # # Warning: this will also ignore any changelog files passed via `--release-notes`,
207
- # # # and will render an empty changelog.
208
- # # # This may result in an empty release notes on GitHub/GitLab/Gitea.
209
- # # skip: false
210
-
211
- # # # # Changelog generation implementation to use.
212
- # # # #
213
- # # # # Valid options are:
214
- # # # # - `git`: uses `git log`;
215
- # # # # - `github`: uses the compare GitHub API, appending the author login to the changelog.
216
- # # # # - `gitlab`: uses the compare GitLab API, appending the author name and email to the changelog.
217
- # # # # - `github-native`: uses the GitHub release notes generation API, disables the groups feature.
218
- # # # #
219
- # # # # Defaults to `git`.
220
- # # # use: github
221
-
222
- # # # Sorts the changelog by the commit's messages.
223
- # # # Could either be asc, desc or empty
224
- # # # Default is empty
225
- # # sort: asc
226
-
227
- # # # Max commit hash length to use in the changelog.
228
- # # #
229
- # # # 0: use whatever the changelog implementation gives you
230
- # # # -1: remove the commit hash from the changelog
231
- # # # any other number: max length.
232
- # # #
233
- # # # Default: 0.
234
- # # # Since: v1.11.2
235
- # # abbrev: -1
159
+ # # GoReleaser can be wired to nfpm to generate and publish .deb, .rpm and .apk packages.
160
+ # nfpms:
161
+ # - maintainer: Carlos A Becker <[email protected] >
162
+ # description: Sample project.
163
+ # homepage: https://github.com/brothersam66/tasktimer
164
+ # license: MIT
165
+ # formats:
166
+ # - deb
167
+ # - rpm
168
+ # - apk
169
+
170
+
171
+ env_files :
172
+ github_token : ~/go/src/github.com/github_token
173
+
174
+ # changelog:
175
+ # # Set this to true if you don't want any changelog at all.
176
+ # # Warning: this will also ignore any changelog files passed via `--release-notes`,
177
+ # # and will render an empty changelog.
178
+ # # This may result in an empty release notes on GitHub/GitLab/Gitea.
179
+ # skip: false
180
+
181
+ # # # Changelog generation implementation to use.
182
+ # # #
183
+ # # # Valid options are:
184
+ # # # - `git`: uses `git log`;
185
+ # # # - `github`: uses the compare GitHub API, appending the author login to the changelog.
186
+ # # # - `gitlab`: uses the compare GitLab API, appending the author name and email to the changelog.
187
+ # # # - `github-native`: uses the GitHub release notes generation API, disables the groups feature.
188
+ # # #
189
+ # # # Defaults to `git`.
190
+ # # use: github
191
+
192
+ # # Sorts the changelog by the commit's messages.
193
+ # # Could either be asc, desc or empty
194
+ # # Default is empty
195
+ # sort: asc
196
+
197
+ # # Max commit hash length to use in the changelog.
198
+ # #
199
+ # # 0: use whatever the changelog implementation gives you
200
+ # # -1: remove the commit hash from the changelog
201
+ # # any other number: max length.
202
+ # #
203
+ # # Default: 0.
204
+ # # Since: v1.11.2
205
+ # abbrev: -1
0 commit comments