2018-07-07 20:33:49 +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.
|
|
|
|
|
|
|
|
drone secret add dan/gogs-notify-test --name gogs_account_token --value $VALUE --event pull-request --event push --event tag --event deployment
|
|
|
|
|
|
|
|
Use in drone.yml:
|
|
|
|
|
|
|
|
notify-gogs:
|
2018-07-07 21:11:04 +02:00
|
|
|
image: mindstab/drone-gogs
|
2018-07-07 20:33:49 +02:00
|
|
|
when:
|
|
|
|
event: pull_request
|
|
|
|
secrets: [gogs_account_token]
|
|
|
|
gogs_url: https://git.openprivacy.ca
|
|
|
|
|
|
|
|
|