Parcourir la source

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 il y a 4 ans
Parent
commit
043f4f1e30
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  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")
 		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))
 	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))
 	return d.agent.PullImage(fmt.Sprintf("%s:%s", d.imageRepo, tagStr))