Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
development:deploy:cicd [2020/02/27 14:14] kalenpw created |
development:deploy:cicd [2021/06/29 15:02] (current) kalenpw |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== CI/CD with GitLab ====== | ====== CI/CD with GitLab ====== | ||
+ | ---- | ||
+ | |||
- create a '' | - create a '' | ||
- '' | - '' | ||
Line 13: | Line 15: | ||
* Notes | * Notes | ||
* Without configuring the runner it will create a '' | * Without configuring the runner it will create a '' | ||
+ | |||
+ | <file yaml .gitlab-ci.yml> | ||
+ | | ||
+ | deploy_stage: | ||
+ | stage: deploy | ||
+ | environment: | ||
+ | only: | ||
+ | - development | ||
+ | script: | ||
+ | - rm -rf / | ||
+ | - mkdir -p / | ||
+ | - ls > / | ||
+ | - mv ./* / | ||
+ | | ||
+ | deploy_production: | ||
+ | stage: deploy | ||
+ | environment: | ||
+ | only: | ||
+ | - master | ||
+ | script: | ||
+ | - rm -rf / | ||
+ | - mkdir -p / | ||
+ | - mv ./* / | ||
+ | </ | ||
+ | ---- |