Plugin hook using a private repository

(Kgish) #1

Having created a discourse plug for a customer which is located in a private git repository, and added it to the hooks section of app.yml, I need to allow git access.

How do I setup the proper credentials to make it work?

(Matt Palmer) #2

Make a hook script that drops an SSH private key into /root/.ssh/id_rsa, then reference the git repo as an SSH-accessible one.

(Kgish) #3

Sounds good! Can you please explain in more detail to a newbie?