Skip to content

Commit 3dbeca3

Browse files
committed
avoid ssh-agent
1 parent 4255448 commit 3dbeca3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

publish-site.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/bin/bash -ex
22

33
if [[ "${TRAVIS_PULL_REQUEST}" == "false" && "${TRAVIS_BRANCH}" == "master" && "${TRAVIS_REPO_SLUG}" == "foundweekends/conscript" ]]; then
4-
eval "$(ssh-agent -s)" #start the ssh agent
4+
echo -e "Host github.com\n\tStrictHostKeyChecking no\nIdentityFile ~/.ssh/deploy_rsa\n" >> ~/.ssh/config
55
openssl aes-256-cbc -k "$SERVER_KEY" -in deploy_key.enc -d -a -out deploy_rsa
66
chmod 600 deploy_rsa
7-
ssh-add deploy_rsa
7+
cp deploy_rsa ~/.ssh/
88
sbt pushSiteIfChanged
99
fi

0 commit comments

Comments
 (0)