Skip to content

conarro/semaphore_zoompf_webhook

Repository files navigation

Semaphore Zoompf Webhook

See the Rigor blog for more on how this works.

Deploy

How it works

  1. Deploy this web service (Heroku is an easy platform)
  2. Add the web service as a "Deploy" webhook in your Semaphore project (docs)
  3. $$$

Once configured, this webhook will:

  1. Trigger a new Zoompf snapshot on deploy of your server via Semaphore
  2. Compare the new snapshot to the previous one (compares total defect count)
  3. Post the results in Slack

Slack screenshot

Configuration

  • 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

About

A web service to trigger and compare Zoompf snapshots after a successful Semaphore deploy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages