Closed jasonsturges closed 6 years ago
The url
param of your config is not a valid value for SSH auth. It must be in the following format: git@server.com:org/repo.git
https://docs.requarks.io/wiki/install/installation/git#using-ssh
Sorry I missed that in the documentation - this works perfectly now, thanks.
git:
url: git@github.com:jasonsturges/wiki.jasonsturges.com.git
branch: master
auth:
type: ssh
privateKey: /etc/wiki/keys/id_rsa
sslVerify: true
signature:
name: Jason Sturges
email: jason@jasonsturges.com
Actual behavior
My GitHub deployment is not operational, seemingly suffering from a variety of issues after following the Wiki.js documentation recommended way to integrate with GitHub using deployment keys.
On my Mac, I followed GitHub documentation to generate a SSH key:
No passcode was provided.
That public id_rsa.pub file was loaded to my GitHub repo's deployment keys
My Wiki.js config.yml specifies git:
My Wiki.js docker-compose.yml links the private id_rsa key:
Wiki.js pulls the repo, and loads correct; however, is unable to push changes.
In the /logs/wiki-stderr.log, I see:
If I enter the container as
$ docker-compose exec wikijs /bin/bash
and try to push the repo, I seeEven after I
$ git push -u origin master
the local Wiki.js repo is not pushing to GitHub remote.What am I missing about this? Trying combos others have cited here haven't worked either, such as user@github or including the
repo.git
in the url.Expected behavior
Wiki.js is able to push to GitHub using deployment keys.
Steps to reproduce the behavior