Skip to content

SalesforceDocs-Bot/custom-heroku-buildpack-notify-slack-deploy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

heroku-buildpack-notify-slack-deploy

This is a Heroku Buildpack you can add to your Heroku deployments that will notify a Slack channel every time your application is deployed.

screenshot

Configuring your Slack Applicaiton

  1. Visit https://api.slack.com/incoming-webhooks to create a new Slack Application that can receive a webook. You only need the "Incomming Webhooks" feature.
  2. As part of the configuration, you will choose a workspace and channel to connect the application to.
  3. Take note of the webook URL, which looks something like this https://hooks.slack.com/services/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S
  4. Feel free to configure the app's icon and name!

Adding to Heroku

  1. Enable Dyno Metadata for your application heroku labs:enable runtime-dyno-metadata
  2. Save your new webook URL as a Heroku config setting for the variableSLACK_DEPLOYMENT_WEBHOOK_URL, i.e.: heroku config:set SLACK_DEPLOYMENT_WEBHOOK_URL="https://hooks.slack.com/services/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S"
  3. Add this buildpack via the Heroku dashboard using the URL https://github.com/salesforcedevs/custom-heroku-buildpack-notify-slack-deploy.git (the heroku buildpack:set command will replace any buildpacks you already have).
  • Note: Be sure that this buildpack is the final buildpack in your app - the order matters!

buildpack

Now, the message in Slack can look like: slackimage

About

Get notified in Slack when Heroku deploys a new version of your app!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%