Skip to content
Permalink
Browse files
fix: set dockers.goarm to 6 by default (#3552)
fixes #3545

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed Nov 14, 2022
1 parent 5c93447 commit bb00edac2a99f8a3d61ca958bfa4f4dc444d1a76
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
@@ -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

0 comments on commit bb00eda

Please sign in to comment.