diff --git a/yaml/compiler/transform/auths.go b/yaml/compiler/transform/auths.go index 7399500..644ca83 100644 --- a/yaml/compiler/transform/auths.go +++ b/yaml/compiler/transform/auths.go @@ -20,9 +20,7 @@ import "github.com/drone/drone-runtime/engine" // of global registry credentials to the container. func WithAuths(auths []*engine.DockerAuth) func(*engine.Spec) { return func(spec *engine.Spec) { - for _, auth := range auths { - spec.Docker.Auths = append(spec.Docker.Auths, auth) - } + spec.Docker.Auths = append(spec.Docker.Auths, auths...) } }