Ivan Galakhov 4 лет назад
Родитель
Сommit
80fe48e09e

+ 6 - 5
internal/integrations/ci/actions/actions.go

@@ -151,11 +151,12 @@ type GithubActionEnvConfig struct {
 }
 
 type GithubActionYAMLStep struct {
-	Name string                `yaml:"name,omitempty"`
-	ID   string                `yaml:"id,omitempty"`
-	Uses string                `yaml:"uses,omitempty"`
-	Run  string                `yaml:"run,omitempty"`
-	Env  GithubActionEnvConfig `yaml:"env,omitempty"`
+	Name    string                `yaml:"name,omitempty"`
+	ID      string                `yaml:"id,omitempty"`
+	Timeout uint64                `yaml:"timeout-minutes,omitempty"`
+	Uses    string                `yaml:"uses,omitempty"`
+	Run     string                `yaml:"run,omitempty"`
+	Env     GithubActionEnvConfig `yaml:"env,omitempty"`
 }
 
 type GithubActionYAMLOnPushBranches struct {

+ 4 - 3
internal/integrations/ci/actions/steps.go

@@ -35,9 +35,10 @@ porter update --app %s
 
 func getConfigurePorterStep(serverURL, porterTokenSecretName string, projectIDSecretName string, clusterIDSecretName string, appName string) GithubActionYAMLStep {
 	return GithubActionYAMLStep{
-		Name: "Configure Porter",
-		ID:   "configure_porter",
-		Run:  fmt.Sprintf(configure, serverURL, appName),
+		Name:    "Update Porter App",
+		ID:      "configure_porter",
+		Run:     fmt.Sprintf(configure, serverURL, appName),
+		Timeout: 10,
 		Env: GithubActionEnvConfig{
 			PorterToken: fmt.Sprintf("{{ secrets.%s }}", porterTokenSecretName),
 			ProjectID:   fmt.Sprintf("{{ secrets.%s }}", projectIDSecretName),