Skip to content

Commit 7a67acc

Browse files
add goreleaser config for docker images
1 parent c4f708b commit 7a67acc

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

.goreleaser.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,63 @@ winget:
131131
owner: go-task
132132
name: winget-pkgs
133133
branch: "bump-task-to-{{.Tag}}"
134+
135+
dockers:
136+
- image_templates:
137+
- "ghcr.io/go-task/task:v{{.Version}}-amd64"
138+
- "docker.io/taskfile/task:v{{.Version}}-amd64"
139+
use: buildx
140+
dockerfile: Dockerfile
141+
extra_files:
142+
- completion/bash/task.bash
143+
build_flag_templates:
144+
- "--platform=linux/amd64"
145+
- "--label=org.opencontainers.image.created={{.Date}}"
146+
- "--label=org.opencontainers.image.title={{.ProjectName}}"
147+
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
148+
- "--label=org.opencontainers.image.version={{.Version}}"
149+
- "--label=org.opencontainers.image.url=https://github.com/go-task/task"
150+
- "--label=org.opencontainers.image.source=https://github.com/go-task/task"
151+
- "--label=org.opencontainers.image.licenses=MIT"
152+
- "--label=org.opencontainers.image.authors=Andrey Nering <[email protected]>"
153+
- "--label=org.opencontainers.image.description=Task is a task runner / build tool that aims to be simpler and easier to use than, for example, GNU Make."
154+
- image_templates:
155+
- "ghcr.io/go-task/task:v{{.Version}}-arm64v8"
156+
- "docker.io/taskfile/task:v{{.Version}}-arm64v8"
157+
use: buildx
158+
goarch: arm64
159+
dockerfile: Dockerfile
160+
extra_files:
161+
- completion/bash/task.bash
162+
build_flag_templates:
163+
- "--platform=linux/arm64/v8"
164+
- "--label=org.opencontainers.image.created={{.Date}}"
165+
- "--label=org.opencontainers.image.title={{.ProjectName}}"
166+
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
167+
- "--label=org.opencontainers.image.version={{.Version}}"
168+
- "--label=org.opencontainers.image.url=https://github.com/go-task/task"
169+
- "--label=org.opencontainers.image.source=https://github.com/go-task/task"
170+
- "--label=org.opencontainers.image.licenses=MIT"
171+
- "--label=org.opencontainers.image.authors=Andrey Nering <[email protected]>"
172+
- "--label=org.opencontainers.image.description=Task is a task runner / build tool that aims to be simpler and easier to use than, for example, GNU Make."
173+
174+
docker_manifests:
175+
- name_template: "ghcr.io/go-task/task:v{{.Version}}"
176+
image_templates:
177+
- "ghcr.io/go-task/task:v{{.Version}}-amd64"
178+
- "ghcr.io/go-task/task:v{{.Version}}-arm64v8"
179+
180+
- name_template: "ghcr.io/go-task/task:latest"
181+
image_templates:
182+
- "ghcr.io/go-task/task:v{{.Version}}-amd64"
183+
- "ghcr.io/go-task/task:v{{.Version}}-arm64v8"
184+
185+
- name_template: "docker.io/taskfile/task:v{{.Version}}"
186+
image_templates:
187+
- "docker.io/taskfile/task:v{{.Version}}-amd64"
188+
- "docker.io/taskfile/task:v{{.Version}}-arm64v8"
189+
190+
- name_template: "docker.io/taskfile/task:latest"
191+
image_templates:
192+
- "docker.io/taskfile/task:v{{.Version}}-amd64"
193+
- "docker.io/taskfile/task:v{{.Version}}-arm64v8"

0 commit comments

Comments
 (0)