update
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
stages:
|
stages:
|
||||||
- deploy
|
- deploy
|
||||||
|
- staging
|
||||||
|
- production
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- project: 'developerdurp/yml'
|
- project: 'developerdurp/yml'
|
||||||
@@ -33,16 +35,35 @@ version:
|
|||||||
# - exists:
|
# - exists:
|
||||||
# - "go.mod"
|
# - "go.mod"
|
||||||
|
|
||||||
generate-config:
|
generate-config-staging:
|
||||||
extends: .generate-config
|
extends: .generate-config
|
||||||
stage: deploy
|
stage: staging
|
||||||
#needs:
|
variables:
|
||||||
# - job: build
|
ENVIRONMENT: "staging"
|
||||||
|
|
||||||
child-pipeline:
|
child-pipeline-staging:
|
||||||
stage: deploy
|
stage: staging
|
||||||
needs:
|
needs:
|
||||||
- job: generate-config
|
- job: generate-config-staging
|
||||||
|
trigger:
|
||||||
|
include:
|
||||||
|
- artifact: generated-config.yml
|
||||||
|
job: generate-config
|
||||||
|
|
||||||
|
generate-config-production:
|
||||||
|
extends: .generate-config
|
||||||
|
stage: production
|
||||||
|
when: manual
|
||||||
|
needs:
|
||||||
|
- job: generate-config-staging
|
||||||
|
- job: child-pipeline-staging
|
||||||
|
variables:
|
||||||
|
ENVIRONMENT: "production"
|
||||||
|
|
||||||
|
child-pipeline-production:
|
||||||
|
stage: production
|
||||||
|
needs:
|
||||||
|
- job: generate-config-production
|
||||||
trigger:
|
trigger:
|
||||||
include:
|
include:
|
||||||
- artifact: generated-config.yml
|
- artifact: generated-config.yml
|
||||||
|
|||||||
Reference in New Issue
Block a user