only do the ssh dance in CI

This commit is contained in:
Richard Harris
2019-02-19 09:22:25 -05:00
parent fd44728b4f
commit 68afbdf0f9

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=v3