mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
fix: set dockers.goarm to 6 by default (#3552)
fixes #3545 Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
parent
5c93447f7b
commit
bb00edac2a
@ -47,6 +47,9 @@ func (Pipe) Default(ctx *context.Context) error {
|
||||
if docker.Goarch == "" {
|
||||
docker.Goarch = "amd64"
|
||||
}
|
||||
if docker.Goarm == "" {
|
||||
docker.Goarm = "6"
|
||||
}
|
||||
if docker.Goamd64 == "" {
|
||||
docker.Goamd64 = "v1"
|
||||
}
|
||||
|
@ -1182,6 +1182,7 @@ func TestDefault(t *testing.T) {
|
||||
docker := ctx.Config.Dockers[0]
|
||||
require.Equal(t, "linux", docker.Goos)
|
||||
require.Equal(t, "amd64", docker.Goarch)
|
||||
require.Equal(t, "6", docker.Goarm)
|
||||
require.Equal(t, []string{"aa"}, docker.IDs)
|
||||
require.Equal(t, useDocker, docker.Use)
|
||||
docker = ctx.Config.Dockers[1]
|
||||
|
@ -50,18 +50,23 @@ dockers:
|
||||
id: myimg
|
||||
|
||||
# GOOS of the built binaries/packages that should be used.
|
||||
# Default: `linux`.
|
||||
goos: linux
|
||||
|
||||
# GOARCH of the built binaries/packages that should be used.
|
||||
# Default: `amd64`.
|
||||
goarch: amd64
|
||||
|
||||
# GOARM of the built binaries/packages that should be used.
|
||||
# Default: `6`.
|
||||
goarm: ''
|
||||
|
||||
# GOAMD64 of the built binaries/packages that should be used.
|
||||
# Default: `v1`.
|
||||
goamd64: 'v2'
|
||||
|
||||
# IDs to filter the binaries/packages.
|
||||
# Default: `empty`.
|
||||
ids:
|
||||
- mybuild
|
||||
- mynfpm
|
||||
|
Loading…
x
Reference in New Issue
Block a user