Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.22 KB

File metadata and controls

40 lines (27 loc) · 1.22 KB

Deploy hook forker

Many hosting services, like Heroku, only allow you to have one HTTP deploy hook. We needed more so we wrote this app. 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

git clone https://github.com/deadlyicon/deploy-hook-forker.git
cd deploy-hook-forker

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

Push it up to heroku

heroku apps:create ${COMPANY_NAME}-deploy-hook-forker

Point your app's HTTP deploy hook to the new deploy hook forker app

heroku addons:add deployhooks:http --url=http://${COMPANY_NAME}-deploy-hook-forker.herokuapp.com

References

Heroku deploy hook docs