Trying to pass the key as an argument

pull/959/head
Morgan Pretty
parent a27f1d7ada
commit bb55c8b461

@ -16,10 +16,10 @@ local custom_clone = {
name: 'Clone',
environment: { CLONE_KEY: { from_secret: 'CLONE_KEY' } },
commands: [
'echo "$CLONE_KEY" > $HOME/.ssh/id_git_rsa',
// 'echo "$CLONE_KEY" > $HOME/.ssh/id_git_rsa',
'git init',
'git remote add origin git@github.com:$DRONE_REPO.git',
'git fetch --depth=1 origin +refs/heads/$DRONE_BRANCH',
'ssh-agent $(ssh-add $CLONE_KEY; git fetch --depth=1 origin +refs/heads/$DRONE_BRANCH)',
'git checkout $DRONE_COMMIT',
'git fetch --tags',
'git submodule update --init --recursive --depth=2 --jobs=4'

Loading…
Cancel
Save