fix: image prefix related bug

This commit is contained in:
Aditya
2024-11-04 13:43:26 +05:30
parent fd82941caa
commit 681e8ffbf7
+1 -1
View File
@@ -472,7 +472,7 @@ func deployk8sApp(image string, identifier string, env []string) error {
log.Printf("[DEBUG] Using REGISTRY_URL %s", localRegistry) log.Printf("[DEBUG] Using REGISTRY_URL %s", localRegistry)
image = fmt.Sprintf("%s/%s", localRegistry, image) image = fmt.Sprintf("%s/%s", localRegistry, image)
} else { } else {
if strings.Count(image, "/") <= 2 { if strings.Count(image, "/") <= 2 && !strings.HasPrefix(image, "frikky/shuffle:") {
image = fmt.Sprintf("frikky/shuffle:%s", image) image = fmt.Sprintf("frikky/shuffle:%s", image)
} }
} }