update
This commit is contained in:
15
scripts/gitlab/create-environment.sh
Normal file
15
scripts/gitlab/create-environment.sh
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
#%%MULTILINE_YAML_START
|
||||||
|
#test deployment
|
||||||
|
|
||||||
|
echo "
|
||||||
|
deploy_$VERSION:
|
||||||
|
stage: deploy
|
||||||
|
needs:
|
||||||
|
- job: build
|
||||||
|
optional: true
|
||||||
|
script:
|
||||||
|
- echo "Deploy to staging server"
|
||||||
|
environment:
|
||||||
|
name: staging
|
||||||
|
" > generated-config.yml
|
||||||
@@ -21,3 +21,10 @@
|
|||||||
needs:
|
needs:
|
||||||
- job: version
|
- job: version
|
||||||
artifacts: true
|
artifacts: true
|
||||||
|
|
||||||
|
generate-config:
|
||||||
|
stage: build
|
||||||
|
- ./scripts/gitlab/create-environment.sh
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- generated-config.yml
|
||||||
|
|||||||
Reference in New Issue
Block a user