1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-07-15 01:34:21 +02:00

fix: use default builder with buildx (#3199)

Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2022-06-24 21:13:33 +02:00
committed by GitHub
parent 82c64f54ff
commit b1a3f301e7
3 changed files with 23 additions and 2 deletions

View File

@ -240,6 +240,27 @@ docker build -t myuser/myimage . \
!!! tip
Learn more about the [name template engine](/customization/templates/).
## Use a specific builder with Docker buildx
If `buildx` is enabled, the `default` context builder will be used when building
the image. This builder is always available and backed by BuildKit in the
Docker engine. If you want to use a different builder, you can specify it using
the `build_flag_templates` field:
```yaml
# .goreleaser.yaml
dockers:
-
image_templates:
- "myuser/myimage"
use: buildx
build_flag_templates:
- "--builder=mybuilder"
```
!!! tip
Learn more about the [buildx builder instances](https://docs.docker.com/buildx/working-with-buildx/#work-with-builder-instances).
## Podman
!!! success "GoReleaser Pro"