I’m using drone 0.8.1 with gogs. When I commit to master a build is triggered. When I tag the repo in gogs, no build is triggered and no docker image built like I would expect. Here is my .drone.yml file:
I enabled drone hooks for tag and deployment. I also checked on the gogs side and checked ‘Release’ which added to the list of enabled events: Create, Pull Request, Push. I can see that the webhook was triggered on the gogs side when I created a release, however no build ensued. Committing to master triggered the latest build as expected. What am I missing?
In many cases you can use the following information to debug why hooks are not working:
Check your gogs webhook history. was one sent?
Check the drone server logs. Drone logs every rejected webhook with a rejection reason.
In your particular case, however, you would see that no webhook was sent from gogs. This is because Drone does not add or support release events. Instead, drone supports tags created and pushed to the repository, which posts a create webhook to the Drone server.