diff --git a/internal/infra/registry_client.go b/internal/infra/registry_client.go index 74a4c326..bd37901a 100644 --- a/internal/infra/registry_client.go +++ b/internal/infra/registry_client.go @@ -27,7 +27,7 @@ func NewRegistryClient(image string) *RegistryClient { var remoteOptions []remote.Option user, pass, err := getRegistryAuthHeader(domain) - if err != nil { + if err == nil { remoteOptions = []remote.Option{ remote.WithAuth(&authn.Basic{Username: user, Password: pass}), }