See the Rigor blog for more on how this works.
- Deploy this web service (Heroku is an easy platform)
- Add the web service as a "Deploy" webhook in your Semaphore project (docs)
- $$$
Once configured, this webhook will:
- Trigger a new Zoompf snapshot on deploy of your server via Semaphore
- Compare the new snapshot to the previous one (compares total defect count)
- Post the results in Slack
-
Set the webhook endpoint to
https://your-app-name.herokuapp.com/ -
Set the following environment variables:
# ID of your application in Intercom
INTERCOM_APP_ID
# API key for your Zoompf account
ZOOMPF_API_KEY
# ID of the Zoompf test to trigger snapshots for
ZOOMPF_TEST_ID
# Slack webhook URL to notify when a snapshot is triggered
SLACK_WEBHOOK_URL
# Optional regular expression used to match the deployed server from Semaphore
SEMAPHORE_SERVER_REGEX
