1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

docs: improve prebuilt docs

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
This commit is contained in:
Carlos A Becker 2022-05-04 10:38:32 -03:00
parent f62283c8ab
commit a51fd7bd8f
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -394,13 +394,15 @@ builds:
builder: prebuilt
# When builder is `prebuilt` there are no defaults for goos, goarch,
# goarm, gomips, goamd64 and targets.
# goarm, gomips, goamd64 and targets, so you always have to specify them:
goos:
- linux
- darwin
- linux
- darwin
goarch:
- amd64
- arm64
- amd64
- arm64
goamd64:
- v1
# prebuilt specific options
prebuilt:
@ -408,14 +410,14 @@ builds:
# GoReleaser removes the `dist` folder before running, so you will likely
# want to put the binaries elsewhere.
# This field is required when using the `prebuilt` builder.
path: output/mybin_{{ .Os }}_{{ .Arch }}
path: output/mybin_{{ .Os }}_{{ .Arch }}_{{ with .Amd64 }}_{{ . }}{{ end }}/mybin
```
This example config will import into your release pipeline the following binaries:
- `output/mybin_linux_amd64`
- `output/mybin_linux_arm64`
- `output/mybin_darwin_amd64`
- `output/mybin_darwin_amd64_v1`
- `output/mybin_darwin_arm64`
The other steps of the pipeline will act as if those were built by GoReleaser itself.