소스 검색

add check to make sure image repo is never written as hello-porter

Alexander Belanger 4 년 전
부모
커밋
d1fb1825f9
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")
 		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
 		release.ImageRepoURI = repoStr
 		_, err := config.Repo.Release().UpdateRelease(release)
 		_, err := config.Repo.Release().UpdateRelease(release)