From ea64d40995adf4311df3b5d163fa8ab667d4d546 Mon Sep 17 00:00:00 2001 From: ymage Date: Mon, 4 Apr 2022 07:28:10 +0200 Subject: [PATCH] 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 --- cmd/kaniko-docker/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/kaniko-docker/main.go b/cmd/kaniko-docker/main.go index 1dddbbd..96292c4 100644 --- a/cmd/kaniko-docker/main.go +++ b/cmd/kaniko-docker/main.go @@ -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 }