mirror of
https://github.com/kevin-DL/sapper-template.git
synced 2026-01-12 02:15:17 +00:00
only do the ssh dance in CI
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user