DeployHubProject / DeployHub-Pro

DeployHub Pro Pipeline Status Project
https://www.openmakesoftware.com/application-release-automation-for-continuous-delivery/
Other
11 stars 4 forks source link

clone private GIT repo #338

Closed piyush94 closed 3 years ago

piyush94 commented 3 years ago

How to clone a private GIT repo?

sbtaylor15 commented 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.

piyush94 commented 3 years ago

Any specific name is required for the SSH key?

sbtaylor15 commented 3 years ago

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