mirror of
https://github.com/drone/drone-kaniko.git
synced 2026-06-04 10:14:55 +08:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user