Explorar o código

fix case when deploy image is hello-porter from CLI

Alexander Belanger %!s(int64=4) %!d(string=hai) anos
pai
achega
acc0f2ecd4
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))