Several weeks ago Ben Straub from Gridium asked us about a way to trigger a deploy via Semaphore API. We exchanged several mails and as a result he sent us a Hubot script to run a deploy on Semaphore. On the screenshot below you can see it in action as one of the founders from Gridium deploys a project to production right from a Slack chat room.
How to set up Hubot
Hubot — GitHub’s chat bot — is a friendly robot that lives in your chat room and helps you and your team with simple tasks.
It can be deployed on a wide variety of platforms, including Linux and Windows, but a popular option is to deploy it to
Heroku. Detailed instructions about installation can be found in Hubot’s Readme file.
Make your Hubot work with Semaphore
After installing the script you will need to copy the API auth token from Semaphore and export it in your Hubot’s production environment. The auth token can be found in your project’s setting under the API tab.
sh export HUBOT_SEMAPHOREAPP_AUTH_TOKEN=
And that’s all there is to have deploy power right in your chat room. Having this feature in your company’s workflow can increase awareness of what everyone is working on, and also reduce the time newcomers need to get up to speed with the process of continuous integration and delivery.
Update: Ben Straub joined forces with the author of hubot-semaphoreapp and combined this project with Semaphore status updates.