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

tag default should be checked for latest instead

Mohammed Nafees 4 лет назад
Родитель
Сommit
e4cad7b6e7
2 измененных файлов с 4 добавлено и 4 удалено
  1. 2 2
      cli/cmd/deploy.go
  2. 2 2
      cli/cmd/deploy/create.go

+ 2 - 2
cli/cmd/deploy.go

@@ -293,14 +293,14 @@ func init() {
 		&forceBuild,
 		"force-build",
 		false,
-		"set this to force build an image (only works on images that are not tagged with \"latest\")",
+		"set this to force build an image (images tagged with \"latest\" have this set by default)",
 	)
 
 	updateCmd.PersistentFlags().BoolVar(
 		&forcePush,
 		"force-push",
 		false,
-		"set this to force push an image (only works on images that are not tagged with \"latest\")",
+		"set this to force push an image (images tagged with \"latest\" have this set by default)",
 	)
 
 	updateCmd.AddCommand(updateGetEnvCmd)

+ 2 - 2
cli/cmd/deploy/create.go

@@ -279,9 +279,9 @@ func (c *CreateAgent) CreateFromDocker(
 		return "", err
 	}
 
-	if imageExists && imageTag != "default" && !forceBuild {
+	if imageExists && imageTag != "latest" && !forceBuild {
 		fmt.Printf("%s:%s already exists in the registry, so skipping build\n", imageURL, imageTag)
-	} else { // image does not exist or has tag default so we (re)build one
+	} else { // image does not exist or has tag "latest" so we (re)build one
 		env, err := GetEnvForRelease(c.Client, mergedValues, opts.ProjectID, opts.ClusterID, opts.Namespace)
 
 		if err != nil {