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

Commit 363fc4e

Browse files
author
Sergey Kibish
committed
Add auto-deploy
1 parent 9153d67 commit 363fc4e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.travis.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ sudo: required
55
services:
66
- docker
77

8+
addons:
9+
ssh_known_hosts: app.trashdiena.fun
10+
811
before_install:
9-
- ssh-keyscan -t $TRAVIS_SSH_KEY_TYPES -H $DEPLOY_HOST 2>&1 | echo >> $HOME/.ssh/known_hosts
1012
- openssl aes-256-cbc -K $encrypted_0c35eebf403c_key -iv $encrypted_0c35eebf403c_iv -in .travis/rsa.enc -out /tmp/rsa -d
1113
- eval "$(ssh-agent -s)"
1214
- chmod 600 /tmp/rsa
@@ -23,5 +25,5 @@ after_success:
2325
docker build -t skibish/trashdiena:$TRAVIS_TAG -t skibish/trashdiena:latest .;
2426
docker push skibish/trashdiena:$TRAVIS_TAG;
2527
docker push skibish/trashdiena:latest;
26-
ssh -i /tmp/rsa $DEPLOY_USER@$DEPLOY_HOST "/opt/app/update-stack.sh $TRAVIS_TAG";
28+
ssh -i /tmp/rsa $DEPLOY_USER@$DEPLOY_HOST "/opt/app/update-stack.sh $TRAVIS_TAG"
2729
fi

0 commit comments

Comments
 (0)