Heroku deploy hook: create tag on BitBucket


Heroku deploy hook: create tag on BitBucket

Every time a heroku deploy goes out, this sketch will create a tag in BitBucket with the application name and version.

To use it, fork this sketch, connect your BitBucket repository and connect a "Generic Webhook". Be sure to note down the Generic Webhook URL, because you'll need that for the next step!

Next you need to set up a Heroku deploy hook for your application(s). To do so, simply run:

heroku addons:create deployhooks:http --url=https://bots.sh/wh/...

replacing the URL with the one from the Generic Webhook you created just now.

Then simply deploy the sketch and your next Heroku deploy should be automatically tagged in BitBucket!