Drone Deployments [General Question]

I am curios in how others use the ‘drone deploy’ feature.

I got all my builds set up but I want to trigger deployments. How are you using this? Command Line? or can you recommend any tooling for this?

1 Like

I wrote some wrapper scripts to run drone command with deployment logic, with inputs, about deployment name, environments (dev, stage, prod) , branch name, on-fly variables, etc

And in current drone version 0.8, you can use variables in deployment event name.

Thanks for sharing.

But that script must then be executed on the server drone is running or are you using the cli?

I was thinking about building a simple slack chat bot. Since we are running slack and we already have drone setup in docker, we could create a slack bot running in docker using botkit and node.js. And install the cli on the image. Then chat with the slack bot and that would enable anyone in our team to create the deployment. Even the release manager who has no access to the drone server :slight_smile:

Seems that’s a good idea. If you did it, share to us :slight_smile:

After you set the drone authentication as below

export DRONE_SERVER=http://drone.mycompany.com
export DRONE_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

You can run drone command line directly. you should be fine to customise it with slack bot accordingly.