Skip to content

Commit

Permalink
fix: set dockers.goarm to 6 by default (#3552)
Browse files Browse the repository at this point in the history
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 bb00eda
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/pipe/docker/docker.go
Expand Up @@ -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"
}
Expand Down
1 change: 1 addition & 0 deletions internal/pipe/docker/docker_test.go
Expand Up @@ -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]
Expand Down
5 changes: 5 additions & 0 deletions www/docs/customization/docker.md
Expand Up @@ -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
Expand Down

0 comments on commit bb00eda

Please sign in to comment.