|
|
@ -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)
|
|
|
|
// Intentionally doing a depth of 2 as libSession-util has it's own submodules (and libLokinet likely will as well)
|
|
|
|
local custom_clone = {
|
|
|
|
local custom_clone = {
|
|
|
|
name: 'Clone Repo',
|
|
|
|
name: 'Clone Repo',
|
|
|
|
environment: { CLONE_KEY: { from_secret: 'CLONE_KEY' } },
|
|
|
|
environment: {
|
|
|
|
|
|
|
|
CLONE_KEY: { from_secret: 'CLONE_KEY' },
|
|
|
|
|
|
|
|
DRONE_SCRIPT_NOPRE: true
|
|
|
|
|
|
|
|
},
|
|
|
|
commands: [
|
|
|
|
commands: [
|
|
|
|
'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"
|
|
|
@ -25,7 +27,7 @@ local custom_clone = {
|
|
|
|
|||,
|
|
|
|
|||,
|
|
|
|
'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',
|
|
|
|
'set -x',
|
|
|
|
'git init',
|
|
|
|
'git init',
|
|
|
|
'git remote add origin $DRONE_GIT_SSH_URL',
|
|
|
|
'git remote add origin $DRONE_GIT_SSH_URL',
|
|
|
|
'git fetch --depth=1 origin +$DRONE_COMMIT_REF',
|
|
|
|
'git fetch --depth=1 origin +$DRONE_COMMIT_REF',
|
|
|
|