Просмотр исходного кода

Merge pull request #2026 from porter-dev/master

hello-porter image fix -> staging
abelanger5 4 лет назад
Родитель
Сommit
5325be4e6c
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      api/server/handlers/release/update_rollback.go

+ 3 - 1
api/server/handlers/release/update_rollback.go

@@ -118,7 +118,9 @@ func updateReleaseRepo(config *config.Config, release *models.Release, helmRelea
 		return fmt.Errorf("Could not find field repository in config")
 	}
 
-	if repoStr != release.ImageRepoURI {
+	if repoStr != release.ImageRepoURI &&
+		repoStr != "public.ecr.aws/o1j4x7p4/hello-porter" &&
+		repoStr != "public.ecr.aws/o1j4x7p4/hello-porter-job" {
 		release.ImageRepoURI = repoStr
 		_, err := config.Repo.Release().UpdateRelease(release)