Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BaseShipScript = "eden ci ship --push" BaseDeployScript = "eden ci deploy --env ${GOENV}" )
View Source
var DefaultJobForBuild = project.Job{ Stage: project.STAGE_BUILD, Builder: "BUILDER_${PROJECT_PROGRAM_LANGUAGE}", Run: project.Script{"eden ci run build"}, }
View Source
var DefaultJobForDeploy = project.Job{ Stage: project.STAGE_DEPLOY, Builder: internal.BuilderDeploy, Run: project.Script{BaseDeployScript}, }
View Source
var DefaultJobForShip = project.Job{ Stage: project.STAGE_SHIP, Builder: internal.BuilderShip, Run: project.Script{BaseShipScript}, }
View Source
var DefaultJobForTest = project.Job{ Stage: project.STAGE_TEST, Builder: "BUILDER_${PROJECT_PROGRAM_LANGUAGE}", Run: project.Script{"eden ci run test"}, }
View Source
var FeaturePR = &project.Workflow{ BranchFlows: project.BranchFlows{ "main": { Env: map[string]string{ "GOENV": "PROD", }, Jobs: project.Jobs{ DefaultJobForTest, DefaultJobForBuild, DefaultJobForShip, DefaultJobForDeploy.Merge( &project.Job{ Run: project.Script{ "eden ci deploy --env=PROD", }, }, ), }, }, "feature/*": { Env: map[string]string{ "GOENV": "STAGING", }, Jobs: project.Jobs{ DefaultJobForTest, DefaultJobForBuild, DefaultJobForShip, DefaultJobForDeploy.Merge( &project.Job{ Run: project.Script{ "eden ci deploy", }, }, ), }, }, "test/feature/*": { Extends: `feature/*`, Env: map[string]string{ "GOENV": "TEST", }, }, `demo/feature/*`: { Extends: `feature/*`, Env: map[string]string{ "GOENV": "DEMO", }, }, }, }
View Source
var FeaturePRNoTest = &project.Workflow{ BranchFlows: project.BranchFlows{ "main": { Env: map[string]string{ "GOENV": "PROD", }, Jobs: project.Jobs{ DefaultJobForBuild, DefaultJobForShip, DefaultJobForDeploy.Merge( &project.Job{ Run: project.Script{ "eden ci deploy --env=PROD", }, }, ), }, }, "feature/*": { Env: map[string]string{ "GOENV": "STAGING", }, Jobs: project.Jobs{ DefaultJobForBuild, DefaultJobForShip, DefaultJobForDeploy, }, }, "test/feature/*": { Extends: `feature/*`, Env: map[string]string{ "GOENV": "TEST", }, }, `demo/feature/*`: { Extends: `feature/*`, Env: map[string]string{ "GOENV": "DEMO", }, }, }, }
View Source
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, }, }, }, }
View Source
var MasterOnly = &project.Workflow{ BranchFlows: project.BranchFlows{ "main": { Env: map[string]string{ "GOENV": "STAGING", }, Jobs: project.Jobs{ DefaultJobForTest, DefaultJobForBuild, DefaultJobForShip, DefaultJobForDeploy, }, }, }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.