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

Commit a536661

Browse files
author
Sergey Kibish
committed
Add auto-deploy
1 parent 0218a45 commit a536661

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.travis.yml

+11
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ sudo: required
55
services:
66
- docker
77

8+
addons:
9+
ssh_known_hosts: "$DEPLOY_HOST"
10+
11+
before_install:
12+
- openssl aes-256-cbc -K $encrypted_0c35eebf403c_key -iv $encrypted_0c35eebf403c_iv
13+
-in .travis/rsa.enc -out /tmp/rsa -d
14+
- eval "$(ssh-agent -s)"
15+
- chmod 600 /tmp/rsa
16+
- ssh-add /tmp/rsa
17+
818
script:
919
- go get -v github.com/golang/dep/cmd/dep
1020
- dep ensure
@@ -16,4 +26,5 @@ after_success:
1626
docker build -t skibish/trashdiena:$TRAVIS_TAG -t skibish/trashdiena:latest .;
1727
docker push skibish/trashdiena:$TRAVIS_TAG;
1828
docker push skibish/trashdiena:latest;
29+
ssh -i /tmp/rsa $DEPLOY_USER@$DEPLOY_HOST "/opt/app/update-stack.sh $TRAVIS_TAG";
1930
fi

.travis/rsa.enc

3.17 KB
Binary file not shown.

0 commit comments

Comments
 (0)