2
0
Эх сурвалжийг харах

add branch to github action config

Alexander Belanger 4 жил өмнө
parent
commit
b241678f64

+ 2 - 0
cli/cmd/create.go

@@ -230,6 +230,8 @@ func createFromGithub(createAgent *deploy.CreateAgent, overrideValues map[string
 
 	if err != nil {
 		return err
+	} else if gitBranch == "" {
+		return fmt.Errorf("git branch not automatically detectable")
 	}
 
 	ok, remoteRepo := gitutils.ParseGithubRemote(remote)

+ 1 - 0
server/api/deploy_handler.go

@@ -156,6 +156,7 @@ func (app *App) HandleDeployTemplate(w http.ResponseWriter, r *http.Request) {
 		gaForm := &forms.CreateGitAction{
 			ReleaseID:      release.ID,
 			GitRepo:        form.GithubActionConfig.GitRepo,
+			GitBranch:      form.GithubActionConfig.GitBranch,
 			ImageRepoURI:   form.GithubActionConfig.ImageRepoURI,
 			DockerfilePath: form.GithubActionConfig.DockerfilePath,
 			GitRepoID:      form.GithubActionConfig.GitRepoID,