1
0
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:
Carlos Alexandro Becker 2022-11-14 13:59:01 -03:00 committed by GitHub
parent 5c93447f7b
commit bb00edac2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 0 deletions

View File

@ -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"
}

View File

@ -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]

View File

@ -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