2

I'm trying to integrate the Drone CI server with the GOGS Git server.

There's a pretty clear document on how to do so here: http://readme.drone.io/setup/config/gogs/

...which indicates I need the following configuration:

[gogs]
url = "http://gogs.drone.io"
secret = "c0aaff74c060ff4a950d"

Where does this secret come from? I can't seem to find it in GOGS anywhere.

Ben
  • 54,723
  • 49
  • 178
  • 224
  • Maybe from a procedure similar to http://readme.drone.io/setup/config/github/? – VonC Aug 28 '15 at 14:03
  • Thanks @VonC, got me on the right track - looks like tokens can be generated in GOGS at `/user/settings/applications`. – Ben Aug 28 '15 at 15:02

2 Answers2

2

That secret key "c0aaff74c060ff4a950d" seems to be the same all over the doc.
In config/github, you can see that key generated through a registration process.

Similarly, the OP Ben comments:

looks like tokens can be generated in GOGS at /user/settings/applications

Ben
  • 54,723
  • 49
  • 178
  • 224
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Anticlimax - turns out the secret isn't actually required. (Thanks http://kevinlaw.info/blog/open-source-continuous-deployment/) There's quite a few other settings in the "generate" key, but I'll decipher them another day. – Ben Aug 29 '15 at 11:51
1

enter image description here

Aha! Look what I found while digging around in gogs/custom/conf/app.ini. I haven't had time to test it, but this looks to be the answer.

Ben
  • 54,723
  • 49
  • 178
  • 224