[solved] How to create a drone plugin?

Hi everyone.

Does anyone here has some sort of plugin starter? I am planning to create a custom plugin but currently I don’t have any idea where I can start. If any of you has recommendations, that would be appreciated.


not sure if this helps? https://docs.drone.io/plugins/bash/

1 Like

Appreciate it! This helps I feel sorry for myself that I wasn’t able to see it on my own. Thank you!

Hi @bradrydzewski!
So I already uploaded my test plugin image in docker hub, let’s say that I already finished working on it.
Can you let me know what should I do next? Or what are the other things that need to be considered?

Thanks in advance!

once a plugin is published to dockerhub (or any valid docker registry) you can immediately start using it in your pipeline by referencing the image in our step. If we use the example from the documentation, and our image is named acme/webhook in dockerhub, we would reference in the yaml as shown below:

kind: pipeline
type: docker
name: default

  - name: webhook
+   image: acme/webhook
      url: http://hook.acme.com
      method: post
      body: |
        hello world
1 Like

Yes, I already tested it on my sample pipeline. Is that all that I need to do? I don’t have to publish the code in github? Or anything?

there is no requirement to publish source code to use a plugin. If you plan on submitting your plugin to the plugin index (plugins.drone.io) however, then it does need to be published under an open source license (e.g. MIT, BSD, Apache)


My plugin is now ready, can you let me know how can I submit my plugin to the plugin index?

Thank you in advance!

Hi, a follow-up on this

you can send a pull request to https://github.com/drone/drone-plugin-index

Alright, thank you so much!