|
|
|
@ -25,10 +25,10 @@ local custom_clone = {
|
|
|
|
|
'mkdir -p ~/.ssh && touch ~/.ssh/config && touch ~/.ssh/known_hosts',
|
|
|
|
|
'echo "$CLONE_KEY" > ~/.ssh/id_ed25519_drone_ci_deploy',
|
|
|
|
|
'chmod 600 ~/.ssh/config && chmod 600 ~/.ssh/known_hosts && chmod 600 ~/.ssh/id_ed25519_drone_ci_deploy',
|
|
|
|
|
'ssh-keyscan -t ed25519 github.com >> ~/.ssh/known_hosts',
|
|
|
|
|
'ssh-keyscan -v -t ed25519 github.com >> ~/.ssh/known_hosts',
|
|
|
|
|
'eval "$(ssh-agent -s)"',
|
|
|
|
|
'ssh-add ~/.ssh/id_ed25519_drone_ci_deploy',
|
|
|
|
|
'ssh -T git@github.com -i ~/.ssh/id_ed25519_drone_ci_deploy',
|
|
|
|
|
'ssh -v -T git@github.com -i ~/.ssh/id_ed25519_drone_ci_deploy',
|
|
|
|
|
'git init',
|
|
|
|
|
'git remote add origin $DRONE_GIT_SSH_URL',
|
|
|
|
|
'git fetch --depth=1 origin +$DRONE_COMMIT_REF',
|
|
|
|
|