Created
November 29, 2018 08:15
-
-
Save kanishkablack/8f6266246ea2cacb438a93f2c96c6fb6 to your computer and use it in GitHub Desktop.
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: | |
image: elixir:1.7 | |
before_script: | |
- mix local.hex --force | |
- mix local.rebar --force | |
- mix deps.get | |
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' | |
- eval $(ssh-agent -s) | |
- echo "$SSH_PRIVATE_KEY_C" | tr -d '\r' | ssh-add - > /dev/null | |
- mkdir -p ~/.ssh | |
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config | |
- chmod 700 ~/.ssh | |
stage: deploy | |
script: | |
- git branch -f master HEAD | |
- mix compile | |
- mix edeliver update staging --start-deploy --verbose --auto-version=git-revision | |
only: | |
- deploy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment