Przeglądaj źródła

Merge pull request #2025 from porter-dev/belanger/hotfix-hello-porter-ecr

Prevent hello-porter images from being written to the database
abelanger5 4 lat temu
rodzic
commit
fb80295734
1 zmienionych plików z 3 dodań i 1 usunięć
  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)