Closed piyush94 closed 3 years ago
@piyush94 add a volume mount from a directory that contains your ssh keys to mount point /keys. The entrypoint.sh will copy the ssh keys from the /keys to the correct location in the container and set the permissions accordingly. The private Git repo should have the public ssh key associated to it.
Import GitCheckout Procedure into Global.GitCheckout procedure. Next add it to the Action that needs to have the clone done.
Then use the ssh or git version of the repo url (git@github.com:DeployHubProject/DeployHub-Docs.git) for the GitRepo parameter. GitCommit is typically the brach to switch to. ToDirectory would be '.' (period) for current working directory.
Any specific name is required for the SSH key?
I can't remember your git repo provider but the setup is going to be similar across providers.
GitHub uses these as default name:
I believe you can use a different name but an update to the .ssh/config file would be required. See connecting-to-github-with-ssh
How to clone a private GIT repo?