diff --git a/.drone.jsonnet b/.drone.jsonnet index 61353bcf7..18e945eeb 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -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',