Permalink
Browse files

avoid ssh-agent

  • Loading branch information...
xuwei-k committed Jul 15, 2017
1 parent 4255448 commit 3dbeca317c363ca4c224ba4d5f0f9eb44a64d1bf
Showing with 2 additions and 2 deletions.
  1. +2 −2 publish-site.sh
View
@@ -1,9 +1,9 @@
#!/bin/bash -ex
if [[ "${TRAVIS_PULL_REQUEST}" == "false" && "${TRAVIS_BRANCH}" == "master" && "${TRAVIS_REPO_SLUG}" == "foundweekends/conscript" ]]; then
eval "$(ssh-agent -s)" #start the ssh agent
echo -e "Host github.com\n\tStrictHostKeyChecking no\nIdentityFile ~/.ssh/deploy_rsa\n" >> ~/.ssh/config
openssl aes-256-cbc -k "$SERVER_KEY" -in deploy_key.enc -d -a -out deploy_rsa
chmod 600 deploy_rsa
ssh-add deploy_rsa
cp deploy_rsa ~/.ssh/
sbt pushSiteIfChanged
fi

0 comments on commit 3dbeca3

Please sign in to comment.