@@ -57,15 +57,15 @@ builds:
57
57
# - v2
58
58
# - v3
59
59
60
- # dockers:
60
+ dockers :
61
61
# You can declare multiple Docker images.
62
62
# They will be matched against the binaries generated by your builds section
63
63
# and packages generated by your nfpms section.
64
64
65
65
# Templates of the Docker image names.
66
66
# if prefix URL, docker img will push.
67
- # - image_templates:
68
- # - "brothersam/guanceexample:{{ .Version }}-amd64"
67
+ - image_templates :
68
+ - " brothersam/guanceexample:{{ .Version }}-amd64"
69
69
# - "gcr.io/brothersam/guanceexample:{{ .Version }}"
70
70
# - "brothersam/guanceexample:{{ .Version }}"
71
71
@@ -75,71 +75,71 @@ builds:
75
75
# GOARCH of the built binaries/packages that should be used.
76
76
# goarch: amd64
77
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
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
128
129
- dockers :
130
- - image_templates :
131
- - " brothersam/guanceexample:{{ .Version }}-amd64"
132
- use : docker
133
- dockerfile : Dockerfile
134
- build_flag_templates :
135
- - " --platform=linux/amd64"
136
- - image_templates :
137
- - " brothersam/guanceexample:{{ .Version }}-arm64v8"
138
- use : docker
139
- goarch : arm64
140
- dockerfile : Dockerfile
141
- build_flag_templates :
142
- - " --platform=linux/arm64/v8"
129
+ # dockers:
130
+ # - image_templates:
131
+ # - "brothersam/guanceexample:{{ .Version }}-amd64"
132
+ # use: docker
133
+ # dockerfile: Dockerfile
134
+ # build_flag_templates:
135
+ # - "--platform=linux/amd64"
136
+ # - image_templates:
137
+ # - "brothersam/guanceexample:{{ .Version }}-arm64v8"
138
+ # use: docker
139
+ # goarch: arm64
140
+ # dockerfile: Dockerfile
141
+ # build_flag_templates:
142
+ # - "--platform=linux/arm64/v8"
143
143
144
144
# docker_manifests:
145
145
# -
0 commit comments