Bläddra i källkod

update entrypoint for porter image

jnfrati 3 år sedan
förälder
incheckning
b7abfe92b6
1 ändrade filer med 8 tillägg och 3 borttagningar
  1. 8 3
      internal/integrations/ci/gitlab/ci.go

+ 8 - 3
internal/integrations/ci/gitlab/ci.go

@@ -406,14 +406,19 @@ func (g *GitlabCI) getCIJob(jobName string) yaml.MapSlice {
 	} else {
 		res = append(res,
 			yaml.MapItem{
-				Key:   "image",
-				Value: "public.ecr.aws/o1j4x7p4/porter-cli:latest",
+				Key: "image",
+				Value: map[string]interface{}{
+					"name": "public.ecr.aws/o1j4x7p4/porter-cli:latest",
+					"entrypoint": []string{
+						"",
+					},
+				},
 			},
 			yaml.MapItem{
 				Key: "script",
 				Value: []string{
 					fmt.Sprintf(
-						"update --host \"%s\" --project %d --cluster %d "+
+						"porter update --host \"%s\" --project %d --cluster %d "+
 							"--token \"$%s\" --app \"%s\" "+
 							"--tag \"$(echo $CI_COMMIT_SHA | cut -c1-7)\" --namespace \"%s\" --stream",
 						g.ServerURL, g.ProjectID, g.ClusterID, g.getPorterTokenSecretName(),