fix: use dockerhub on override variable

This commit is contained in:
Aditya
2024-11-04 12:47:56 +05:30
parent becb75fc79
commit 6c42e1c1ab
3 changed files with 13 additions and 2 deletions
+5 -2
View File
@@ -429,16 +429,19 @@ func deployk8sApp(image string, identifier string, env []string) error {
// that is equal to the image being deployed.
for _, value := range autoDeploy {
if value == image {
log.Printf("[DEBUG] Detected baseDeploy image. Resorting to not using the registry")
baseDeployMode = true
}
}
autoDeployOverride := os.Getenv("SHUFFLE_USE_DOCKERHUB_FOR_AUTODEPLOY") == "true"
localRegistry := ""
// Checking if app is generated or not
if !baseDeployMode {
if !baseDeployMode && !autoDeployOverride {
localRegistry := os.Getenv("REGISTRY_URL")
} else {
log.Printf("[DEBUG] Detected baseDeploy image (%s) and dockerhub override. Resorting to using dockerhub instead of registry", image)
}
/*