Specify in your circle.yml:
...
notify:
webhooks:
- url: https://<DEPLOYED_APP_URL>/webhooks/circleci/receive
...
Circle will send a a POST
request to /webhooks/circleci/receive
with a JSON body of:
{
"payload": {
...
"status": "<CIRCLE CI BUILD STATUS>"
...
}
}
The app will translate the following statuses from Circle CI to IFTTT maker webhook events:
Circle CI | IFTTT |
---|---|
success |
build_passing |
failed |
build_failing |
Install dependencies:
bundle install
Start the app:
bundle exec ruby app.rb -p 3000
Create .env
file, and add it to .gitignore:
IFTTT_KEY=<YOUR KEY>
Simply run git push heroku master
Ensure that you've set IFTTT_KEY
as an environment variable on Heroku.