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 0218a45 commit a536661
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ sudo: required
services:
- docker

addons:
ssh_known_hosts: "$DEPLOY_HOST"

before_install:
- 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
- ssh-add /tmp/rsa

script:
- go get -v github.com/golang/dep/cmd/dep
- dep ensure
Expand All @@ -16,4 +26,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";
fi
Binary file added .travis/rsa.enc
Binary file not shown.

0 comments on commit a536661

Please sign in to comment.