Просмотр исходного кода

fix case when deploy image is hello-porter from CLI

Alexander Belanger 4 лет назад
Родитель
Сommit
acc0f2ecd4
1 измененных файлов с 6 добавлено и 0 удалено
  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))