Explorar o código

Merge pull request #1169 from porter-dev/0.8.4-fix-hello-porter-deploy

[0.9.0] Fix case when deploy image is `hello-porter` from CLI
abelanger5 %!s(int64=5) %!d(string=hai) anos
pai
achega
043f4f1e30
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      cli/cmd/deploy/deploy.go

+ 6 - 0
cli/cmd/deploy/deploy.go

@@ -397,6 +397,12 @@ func (d *DeployAgent) pullCurrentReleaseImage() error {
 		return fmt.Errorf("could not cast image.tag field to string")
 	}
 
+	// if image repo is a hello-porter image, skip
+	if d.imageRepo == "public.ecr.aws/o1j4x7p4/hello-porter" ||
+		d.imageRepo == "public.ecr.aws/o1j4x7p4/hello-porter-job" {
+		return nil
+	}
+
 	fmt.Printf("attempting to pull image: %s\n", fmt.Sprintf("%s:%s", d.imageRepo, tagStr))
 
 	return d.agent.PullImage(fmt.Sprintf("%s:%s", d.imageRepo, tagStr))