1 Star 0 Fork 0

eden-framework/eden-framework

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
gitflow.go 1.29 KB
一键复制 编辑 原始数据 按行查看 历史
文兄 提交于 2023-05-12 10:01 . feat. 支持harbor registry
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,
},
},
},
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/eden-framework/eden-framework.git
git@gitee.com:eden-framework/eden-framework.git
eden-framework
eden-framework
eden-framework
v1.4.7

搜索帮助