@@ -14,12 +14,14 @@ builds:
14
14
# Default: Project directory name
15
15
binary : pingcli
16
16
17
- # Custom ldflags.
17
+ # Custom environment variables to be set during the builds.
18
+ # Invalid environment variables will be ignored.
19
+ # For more info refer to: https://pkg.go.dev/cmd/go#hdr-Environment_variables
18
20
#
19
- # Default: '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser' .
21
+ # Default: os.Environ() ++ env config section .
20
22
# Templates: allowed.
21
- ldflags :
22
- - ' -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} '
23
+ env :
24
+ - CGO_ENABLED=0
23
25
24
26
# GOOS list to build for.
25
27
# For more info refer to: https://golang.org/doc/install/source#environment
@@ -96,8 +98,7 @@ checksum:
96
98
disable : false
97
99
98
100
brews :
99
- -
100
- # Git author used to commit to the repository.
101
+ - # Git author used to commit to the repository.
101
102
commit_author :
102
103
name : goreleaserbot
103
104
@@ -158,3 +159,83 @@ brews:
158
159
name : homebrew-tap
159
160
160
161
token : " {{ .Env.GORELEASER_HOMEBREW_TAP_GITHUB_PAT}}"
162
+
163
+ dockers :
164
+ # You can have multiple Docker images.
165
+ # Templates of the Docker image names.
166
+ #
167
+ # Templates: allowed.
168
+ - image_templates :
169
+ - " pingidentity/pingcli:{{ .Tag }}-amd64"
170
+
171
+ # Docker build flags.
172
+ #
173
+ # Templates: allowed.
174
+ build_flag_templates :
175
+ - " --platform=linux/amd64"
176
+ - " --pull"
177
+
178
+ # GOARCH of the built binaries/packages that should be used.
179
+ # Default: 'amd64'.
180
+ goarch : amd64
181
+
182
+ # Set the "backend" for the Docker pipe.
183
+ #
184
+ # Valid options are: docker, buildx, podman.
185
+ #
186
+ # Podman is a GoReleaser Pro feature and is only available on Linux.
187
+ #
188
+ # Default: 'docker'.
189
+ use : buildx
190
+
191
+ # You can have multiple Docker images.
192
+ # Templates of the Docker image names.
193
+ #
194
+ # Templates: allowed.
195
+ - image_templates :
196
+ - " pingidentity/pingcli:{{ .Tag }}-arm64"
197
+
198
+ # Docker build flags.
199
+ #
200
+ # Templates: allowed.
201
+ build_flag_templates :
202
+ - " --platform=linux/arm64"
203
+ - " --pull"
204
+
205
+ # GOARCH of the built binaries/packages that should be used.
206
+ # Default: 'amd64'.
207
+ goarch : arm64
208
+
209
+ # Set the "backend" for the Docker pipe.
210
+ #
211
+ # Valid options are: docker, buildx, podman.
212
+ #
213
+ # Podman is a GoReleaser Pro feature and is only available on Linux.
214
+ #
215
+ # Default: 'docker'.
216
+ use : buildx
217
+
218
+ docker_manifests :
219
+ # Name for the manifest.
220
+ #
221
+ # Templates: allowed.
222
+ - name_template : " pingidentity/pingcli:latest"
223
+
224
+ # Image name to be added to this manifest.
225
+ #
226
+ # Templates: allowed.
227
+ image_templates :
228
+ - " pingidentity/pingcli:{{ .Tag }}-amd64"
229
+ - " pingidentity/pingcli:{{ .Tag }}-arm64"
230
+
231
+ # Name for the manifest.
232
+ #
233
+ # Templates: allowed.
234
+ - name_template : " pingidentity/pingcli:{{ .Tag }}"
235
+
236
+ # Image name to be added to this manifest.
237
+ #
238
+ # Templates: allowed.
239
+ image_templates :
240
+ - " pingidentity/pingcli:{{ .Tag }}-amd64"
241
+ - " pingidentity/pingcli:{{ .Tag }}-arm64"
0 commit comments