We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a6b3e2f + 6ae21e3 commit a5459e5Copy full SHA for a5459e5
internal/docker/config.go
@@ -5,7 +5,6 @@ import (
5
"encoding/json"
6
"errors"
7
"fmt"
8
- "strings"
9
)
10
11
const (
@@ -50,7 +49,7 @@ func (c *Config) SetCredHelper(registry, helper string) {
50
49
51
func (c *Config) CreateDockerConfigJson(credentials []RegistryCredentials) ([]byte, error) {
52
for _, cred := range credentials {
53
- if cred.Registry != "" && strings.Contains(cred.Registry, "docker") {
+ if cred.Registry != "" {
54
55
if cred.Username == "" {
56
return nil, fmt.Errorf("Username must be specified for registry: %s", cred.Registry)
0 commit comments