Further tweaks

pull/959/head
Morgan Pretty 3 months ago
parent 21e5d687b8
commit 4d9b736448

@ -14,9 +14,11 @@ local version_info = {
// Intentionally doing a depth of 2 as libSession-util has it's own submodules (and libLokinet likely will as well)
local custom_clone = {
name: 'Clone Repo',
environment: { CLONE_KEY: { from_secret: 'CLONE_KEY' } },
environment: {
CLONE_KEY: { from_secret: 'CLONE_KEY' },
DRONE_SCRIPT_NOPRE: true
},
commands: [
'set +x', // Disable execution output
|||
if [ -z "$CLONE_KEY" ]; then
echo -e "\n\n\n\e[31;1mUnable to checkout repo: CLONE_KEY not set\e[0m"
@ -25,7 +27,7 @@ local custom_clone = {
|||,
'eval "$(ssh-agent -s)"',
'echo "$CLONE_KEY" | ssh-add -',
'mkdir -p ~/.ssh && touch ~/.ssh/config && touch ~/.ssh/known_hosts && chmod -R 400 ~/.ssh',
'set -x',
'git init',
'git remote add origin $DRONE_GIT_SSH_URL',
'git fetch --depth=1 origin +$DRONE_COMMIT_REF',

Loading…
Cancel
Save