mirror of
https://gitlab.durp.info/durfy/ci-includes/yml.git
synced 2026-05-07 16:00:31 -05:00
update
This commit is contained in:
parent
4b76641b2b
commit
8e67ec8341
2 changed files with 22 additions and 0 deletions
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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue