代码拉取完成,页面将自动刷新
package workflows
import (
"fmt"
"gitee.com/eden-framework/eden-framework/internal/project"
)
func init() {
project.RegisterWorkFlow("gitflow", Gitflow)
}
var Gitflow = &project.Workflow{
BranchFlows: project.BranchFlows{
"develop": {
Env: map[string]string{
"GOENV": "STAGING",
},
Jobs: project.Jobs{
DefaultJobForTest,
DefaultJobForBuild,
DefaultJobForShip.Merge(
&project.Job{
Run: project.Script{fmt.Sprintf("%s --latest", BaseShipScript)},
},
),
DefaultJobForDeploy.Merge(
&project.Job{
Run: project.Script{fmt.Sprintf("%s --latest", BaseDeployScript)},
},
),
},
},
`release/*`: {
Env: map[string]string{
"GOENV": "TEST",
},
Jobs: project.Jobs{
DefaultJobForTest,
DefaultJobForBuild,
DefaultJobForShip.Merge(
&project.Job{
Run: project.Script{fmt.Sprintf("%s --suffix ${CI_ENVIRONMENT_NAME}", BaseShipScript)},
},
),
DefaultJobForDeploy.Merge(
&project.Job{
Run: project.Script{fmt.Sprintf("%s --suffix ${CI_ENVIRONMENT_NAME}", BaseDeployScript)},
},
),
},
},
"main": {
Env: map[string]string{
"GOENV": "DEMO",
},
Jobs: project.Jobs{
DefaultJobForTest,
DefaultJobForBuild,
DefaultJobForShip,
DefaultJobForDeploy,
},
},
},
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。