Created
April 4, 2019 09:09
-
-
Save kovalbogdan95/503d2bbe3dfa86f0b39b1856e5b9f4b7 to your computer and use it in GitHub Desktop.
Build and deploy flow Gitlab CI/CD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| stages: | |
| - test | |
| - build | |
| - deploy | |
| test: | |
| stage: test | |
| script: echo "Running tests" | |
| tags: | |
| - lab | |
| build: | |
| stage: build | |
| script: echo "Building the app" | |
| tags: | |
| - lab | |
| deploy_staging: | |
| stage: deploy | |
| script: | |
| - echo "Deploy to staging server" | |
| environment: | |
| name: staging | |
| url: https://staging.example.com | |
| only: | |
| - master | |
| tags: | |
| - lab | |
| deploy_prod: | |
| stage: deploy | |
| script: | |
| - echo "Deploy to production server" | |
| environment: | |
| name: production | |
| url: https://example.com | |
| when: manual | |
| only: | |
| - master | |
| tags: | |
| - lab |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment