mirror of
https://github.com/kevin-DL/sapper-template.git
synced 2026-01-20 21:45:10 +00:00
only do the ssh dance in CI
This commit is contained in:
@@ -1,10 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd "$(dirname $0)"/..
|
cd "$(dirname $0)"/..
|
||||||
|
|
||||||
# write out SSH key
|
if [ "$CI" ]; then
|
||||||
[ "$SSH_KEY" ] || exit 1
|
# write out SSH key
|
||||||
echo "$SSH_KEY" > ~/.ssh/id_rsa
|
[ "$SSH_KEY" ] || exit 1
|
||||||
chmod 600 ~/.ssh/id_rsa
|
echo "$SSH_KEY" > ~/.ssh/id_rsa
|
||||||
|
chmod 600 ~/.ssh/id_rsa
|
||||||
|
fi
|
||||||
|
|
||||||
# branch names
|
# branch names
|
||||||
DEFAULT=master
|
DEFAULT=master
|
||||||
|
|||||||
Reference in New Issue
Block a user