update
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
stages:
|
stages:
|
||||||
- deploy
|
- deploy
|
||||||
- staging
|
- release
|
||||||
- production
|
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- project: "developerdurp/yml"
|
- project: "developerdurp/yml"
|
||||||
@@ -37,44 +36,39 @@ build:
|
|||||||
- exists:
|
- exists:
|
||||||
- "go.mod"
|
- "go.mod"
|
||||||
|
|
||||||
generate-config-staging:
|
generate-config-dev:
|
||||||
extends: .generate-config
|
extends: .generate-config
|
||||||
stage: staging
|
stage: release
|
||||||
variables:
|
variables:
|
||||||
ENVIRONMENT: "dev"
|
ENVIRONMENT: "dev"
|
||||||
|
|
||||||
child-pipeline-staging:
|
child-pipeline-dev:
|
||||||
stage: staging
|
stage: release
|
||||||
needs:
|
needs:
|
||||||
- job: generate-config-staging
|
- job: build
|
||||||
trigger:
|
trigger:
|
||||||
include:
|
include:
|
||||||
- artifact: generated-config.yml
|
- artifact: generated-config.yml
|
||||||
job: generate-config-staging
|
job: generate-config-dev
|
||||||
variables:
|
variables:
|
||||||
ENVIRONMENT: "dev"
|
ENVIRONMENT: "dev"
|
||||||
PARENT_PIPELINE_ID: $CI_PIPELINE_ID
|
PARENT_PIPELINE_ID: $CI_PIPELINE_ID
|
||||||
|
|
||||||
generate-config-production:
|
generate-config-prd:
|
||||||
extends: .generate-config
|
extends: .generate-config
|
||||||
stage: production
|
stage: release
|
||||||
|
variables:
|
||||||
|
ENVIRONMENT: "prd"
|
||||||
|
|
||||||
|
child-pipeline-prd:
|
||||||
|
stage: release
|
||||||
|
needs:
|
||||||
|
- job: generate-config-prd
|
||||||
when: manual
|
when: manual
|
||||||
needs:
|
|
||||||
- job: version
|
|
||||||
artifacts: true
|
|
||||||
- job: generate-config-staging
|
|
||||||
- job: child-pipeline-staging
|
|
||||||
variables:
|
|
||||||
ENVIRONMENT: "prd"
|
|
||||||
|
|
||||||
child-pipeline-production:
|
|
||||||
stage: production
|
|
||||||
needs:
|
|
||||||
- job: generate-config-production
|
|
||||||
trigger:
|
trigger:
|
||||||
include:
|
include:
|
||||||
- artifact: generated-config.yml
|
- artifact: generated-config.yml
|
||||||
job: generate-config-production
|
job: generate-config-prd
|
||||||
variables:
|
variables:
|
||||||
ENVIRONMENT: "prd"
|
ENVIRONMENT: "prd"
|
||||||
PARENT_PIPELINE_ID: $CI_PIPELINE_ID
|
PARENT_PIPELINE_ID: $CI_PIPELINE_ID
|
||||||
|
|||||||
Reference in New Issue
Block a user