drone-gogs/README.md

21 lines
629 B
Markdown
Raw Permalink Normal View History

2018-07-08 01:36:07 +02:00
Drone plugin for posting to Gogs PRs comments about build results.
2018-07-08 01:29:02 +02:00
Create a user on Gogs for posting build notifications (like 'buildbot') and generate a token for it. Insert the token as a drone secret. (Replace $VALUE with the actual token)
2018-07-08 01:29:02 +02:00
drone secret add dan/gogs-notify-test --name gogs_account_token --value $VALUE --event pull_request
2018-07-08 01:36:07 +02:00
2018-07-08 01:29:02 +02:00
Use in .drone.yml:
notify-gogs:
2018-07-07 21:11:04 +02:00
image: mindstab/drone-gogs
when:
event: pull_request
secrets: [gogs_account_token]
2018-07-08 01:29:02 +02:00
gogs_url: https://git.yourdomain.com
2018-07-08 01:36:07 +02:00
2018-07-08 01:29:02 +02:00
- gogs_url should not end in '/'. Example with path: https://git.yourdomain.com/gogs