Steps are running, back to debugging

pull/959/head
Morgan Pretty 1 year ago
parent 571d5e5457
commit 21e5d687b8

@ -16,7 +16,7 @@ local custom_clone = {
name: 'Clone Repo', name: 'Clone Repo',
environment: { CLONE_KEY: { from_secret: 'CLONE_KEY' } }, environment: { CLONE_KEY: { from_secret: 'CLONE_KEY' } },
commands: [ commands: [
'set -x', // Disable execution output 'set +x', // Disable execution output
||| |||
if [ -z "$CLONE_KEY" ]; then if [ -z "$CLONE_KEY" ]; then
echo -e "\n\n\n\e[31;1mUnable to checkout repo: CLONE_KEY not set\e[0m" echo -e "\n\n\n\e[31;1mUnable to checkout repo: CLONE_KEY not set\e[0m"
@ -24,7 +24,7 @@ local custom_clone = {
fi fi
|||, |||,
'eval "$(ssh-agent -s)"', 'eval "$(ssh-agent -s)"',
'echo "${CLONE_KEY}" | ssh-add -', 'echo "$CLONE_KEY" | ssh-add -',
'mkdir -p ~/.ssh && touch ~/.ssh/config && touch ~/.ssh/known_hosts && chmod -R 400 ~/.ssh', 'mkdir -p ~/.ssh && touch ~/.ssh/config && touch ~/.ssh/known_hosts && chmod -R 400 ~/.ssh',
'git init', 'git init',
'git remote add origin $DRONE_GIT_SSH_URL', 'git remote add origin $DRONE_GIT_SSH_URL',

Loading…
Cancel
Save