Custom clone with ssh

How to clone remote repository in drone with custom clone using ssh ?
Can I pass ssh key somehow into pipeline ?


documentation for custom clone logic:

you can pass passwords or keys to a pipeline using secrets. the secret will be available as an environment variable, which you can write to a file

    from_secret: ssh_key
- echo "$KEY" > $HOME/.ssh/id_rsa

You might also search this forum for examples. I recall there being similar discussion threads in the past.

1 Like

Thank you this helped