Remove prepending of v1RegistryURL to the repo (#47)

* Default registry value is not  but v1RegistryURL

* Handle test (not sure about its relevancy

Co-authored-by: Ymage <heltem+git@o2php.com>
This commit is contained in:
ymage 2022-04-04 07:28:10 +02:00 committed by GitHub
parent 0cd3e162fa
commit ea64d40995
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

@ -264,7 +264,7 @@ func createDockerCfgFile(username, password, registry string) error {
}
func buildRepo(registry, repo string) string {
if registry == "" {
if registry == "" || registry == v1RegistryURL {
// No custom registry, just return the repo name
return repo
}