Permalink
Browse files

Update deploy.sh

  • Loading branch information...
1 parent 9c78940 commit 8a382c1e796903aff09cb42f60cd30078039ce90 @dz0ny dz0ny committed Feb 23, 2017
Showing with 8 additions and 5 deletions.
  1. +7 −4 .travis.yml
  2. +1 −1 .travis/deploy.sh
  3. BIN .travis/key.enc
View
@@ -1,10 +1,13 @@
language: node_js
node_js:
- - "6"
-dist: trusty
+- '6'
+dist: trusty
sudo: false
deploy:
provider: script
- script: .travis/deploy.sh
+ script: ".travis/deploy.sh"
on:
- branch: master
+ branch: master
+before_install:
+- openssl aes-256-cbc -K $encrypted_8b6bbaa2f436_key -iv $encrypted_8b6bbaa2f436_iv
+ -in .travis/key.enc -out .travis/deploy_key.pem -d
View
@@ -1,6 +1,6 @@
#!/bin/bash
+
eval "$(ssh-agent -s)" #start the ssh agent
-echo "$FUNNY_CAT" > .travis/deploy_key.pem
chmod 600 .travis/deploy_key.pem # this key should have push access
ssh-add .travis/deploy_key.pem
git remote add dokku dokku@$APP_HOSTNAME:$APP
View
Binary file not shown.

0 comments on commit 8a382c1

Please sign in to comment.