Explorar el Código

do not use porter.yaml if unspecified (#4324)

Feroze Mohideen hace 2 años
padre
commit
7049f695a1
Se han modificado 1 ficheros con 2 adiciones y 5 borrados
  1. 2 5
      internal/integrations/ci/actions/steps.go

+ 2 - 5
internal/integrations/ci/actions/steps.go

@@ -83,14 +83,11 @@ func getDeployStackStep(
 	projectID, clusterID uint,
 	preview bool,
 ) GithubActionYAMLStep {
-	var path string
+	command := "exec porter apply"
 	if porterYamlPath != "" {
-		path = porterYamlPath
-	} else {
-		path = "porter.yaml"
+		command = fmt.Sprintf("exec porter apply -f %s", porterYamlPath)
 	}
 
-	command := fmt.Sprintf("exec porter apply -f %s", path)
 	if preview {
 		command = fmt.Sprintf("%s --preview", command)
 	}