Skip to content

ImpactData/deploy-hook-forker

 
 

Repository files navigation

Deploy Hook Forker

Heroku only allows you to have one HTTP deploy hook. This app accepts a post to /:app and forwards the post and its params to all the urls listed for that app in the config file.

Usage

Clone this app and create a Heroku git remote

git clone https://github.com/ImpactData/deploy-hook-forker.git
cd deploy-hook-forker
heroku git:remote -a impact-data-deploy-hook-forker -r production

Modify the config file

your-heroku-app-name:
  slack: https://other.slack.com/services/hooks/heroku?token=INTENTIONALLY_LEFT_BLANK
  appsignal: https://push.appsignal.com/1/markers/heroku?api_key=INTENTIONALLY_LEFT_BLANK
  honeybadger: https://api.honeybadger.io/v1/deploys?deploy[environment]=production&api_key=INTENTIONALLY_LEFT_BLANK
another-heroku-app-name:
  honeybadger: https://api.honeybadger.io/v1/deploys?deploy[environment]=staging&api_key=INTENTIONALLY_LEFT_BLANK

Once it's been merged into master, push it up to Heroku

git push production origin/master:master

Point your app's HTTP deploy hook to the new Deploy Hook Forker app

heroku addons:add deployhooks:http --url=https://impact-data-deploy-hook-forker.herokuapp.com

This can also be done via the Heroku apps web UI.

References

Heroku deploy hook docs

About

Forward deploy hook HTTP Posts to as N other endpoints

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%