Created
July 31, 2017 16:11
-
-
Save blarshk/561c379730645fe2ee906b716b946296 to your computer and use it in GitHub Desktop.
Gitlab CD for deploying to Integration environments
This file contains 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
.deploy_to_int: &deploy_to_int | |
stage: deploy | |
when: manual | |
script: | |
- eval $(ssh-agent) | |
- ssh-add ~/.ssh/id_rsa | |
- cap $CI_ENVIRONMENT_NAME deploy BRANCH=$CI_COMMIT_REF_NAME | |
deploy_to_int1: | |
<<: *deploy_to_int | |
environment: | |
name: integration1 | |
url: https://int1-app.nav.com | |
tags: | |
- integration1 | |
deploy_to_int3: | |
<<: *deploy_to_int | |
environment: | |
name: integration3 | |
url: https://int3-app.nav.com | |
tags: | |
- integration3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment