gh-pages icon indicating copy to clipboard operation
gh-pages copied to clipboard

SSH vs HTTPS

Open HHogg opened this issue 8 years ago • 3 comments

I was having an issue on a couple of repos in which we have set up to deploy using gh-pages from Travis. This was setup using Githubs deploys keys and Travis's encrypted file support, similar to this setup.

However it seems gh-pages clones using the https urls, so the remote will then be set to https and not shh, which is what is required to pick up the added ssh key on Travis. This would cause the push task to fail.

This can be overcome by specifying --repo [email protected]:{FOO}/{BAR}.git ... but would you be open to adding an ssh option to take care of this?

HHogg avatar Feb 11 '17 13:02 HHogg

An option to prefer ssh could make sense. As long as the URL transform isn't too fragile.

tschaub avatar May 08 '17 04:05 tschaub

This would be a really useful addition

hughbe avatar Aug 04 '17 12:08 hughbe

@tschaub Whatever happened to this idea?

How can I make gh-pages use the pipeline ssh key instead of git config to verify the user? Is it in how the url should be formatted? How is the format for Bitbucket? Or is it absolutely not possible with this project?

anderslatif avatar Feb 28 '19 12:02 anderslatif