ci: render

Rendered by https://gitlab.com/developerdurp/yml/-/pipelines/1285340537
This commit is contained in:
2024-05-10 00:07:57 +00:00
parent ec42dbb641
commit e23d10806e

View File

@@ -40,7 +40,23 @@
- job: version
artifacts: true
generate-config:
stage: build - ./scripts/gitlab/create-environment.sh
stage: build
script:
# Begin of create-environment.sh
- |
#test deployment
echo "
deploy_$VERSION:
stage: deploy
needs:
- pipeline: $PARENT_PIPELINE_ID
job: version
script:
- echo "Deploy to staging server"
environment:
name: staging
" > generated-config.yml
# End of create-environment.sh
artifacts:
paths:
- generated-config.yml