Skip to content

Instantly share code, notes, and snippets.

@blarshk
Created July 31, 2017 16:11
Show Gist options
  • Save blarshk/561c379730645fe2ee906b716b946296 to your computer and use it in GitHub Desktop.
Save blarshk/561c379730645fe2ee906b716b946296 to your computer and use it in GitHub Desktop.
Gitlab CD for deploying to Integration environments
.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