Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

Commit

Permalink
Add auto-deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Kibish committed Jan 28, 2018
1 parent 9153d67 commit 363fc4e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ sudo: required
services:
- docker

addons:
ssh_known_hosts: app.trashdiena.fun

before_install:
- ssh-keyscan -t $TRAVIS_SSH_KEY_TYPES -H $DEPLOY_HOST 2>&1 | echo >> $HOME/.ssh/known_hosts
- openssl aes-256-cbc -K $encrypted_0c35eebf403c_key -iv $encrypted_0c35eebf403c_iv -in .travis/rsa.enc -out /tmp/rsa -d
- eval "$(ssh-agent -s)"
- chmod 600 /tmp/rsa
Expand All @@ -23,5 +25,5 @@ after_success:
docker build -t skibish/trashdiena:$TRAVIS_TAG -t skibish/trashdiena:latest .;
docker push skibish/trashdiena:$TRAVIS_TAG;
docker push skibish/trashdiena:latest;
ssh -i /tmp/rsa $DEPLOY_USER@$DEPLOY_HOST "/opt/app/update-stack.sh $TRAVIS_TAG";
ssh -i /tmp/rsa $DEPLOY_USER@$DEPLOY_HOST "/opt/app/update-stack.sh $TRAVIS_TAG"
fi

0 comments on commit 363fc4e

Please sign in to comment.