only do the ssh dance in CI

This commit is contained in:
Richard Harris
2019-02-19 09:23:01 -05:00
parent 9beeb742c6
commit 8b1a991ebd

View File

@@ -1,10 +1,12 @@
#!/bin/bash
cd "$(dirname $0)"/..
# write out SSH key
[ "$SSH_KEY" ] || exit 1
echo "$SSH_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
if [ "$CI" ]; then
# write out SSH key
[ "$SSH_KEY" ] || exit 1
echo "$SSH_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
fi
# branch names
DEFAULT=master