Integration with Gitea
X-Ryl669 opened this issue · 5 comments
X-Ryl669 commented
Thanks for your code. It's very good.
I was wondering how can I integrate it with Gitea's webhook ?
(Said differently, how can I trigger a pipeline from outside the admin interface via a HTTP call ?)
Skarlso commented
You can do that with the pipeline remote trigger action.
If you access your pipeline, you'll see a trigger token like this:
Use that to trigger a pipeline by calling the rest endpoint without the need for an authenticated client like this:
curl -X POST http://localhost:8080/api/v1/pipeline/2/6ffb6acf-8438-5cd7-b819-0d18e9c47b68/trigger
Skarlso commented
Uh, that was actually not working correctly. :/ Bummer.
Here is the fix: #251
But I'm afraid that it will not be released any time soon.... so you'll have to build your own gaia to make it work....
Skarlso commented
This has been fixed and released.
X-Ryl669 commented
Indeed, it's working with the trigger URL.
Skarlso commented
Yay!