Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/content/docs/workers/ci-cd/builds/event-subscriptions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,22 @@ import { Render } from "~/components";

<Render file="event-subscriptions/intro" product="queues" />

## Send build notifications

You can deploy a Worker that consumes build events and sends notifications to Slack, Discord, or any webhook endpoint:

[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/templates/tree/main/workers-builds-notifications-template)

The template sends notifications for:

- Successful builds with preview or live deployment URLs
- Failed builds with error messages
- Cancelled builds

![Example Slack notifications for Workers Builds events](~/assets/images/changelog/workers/builds-notifications-slack.png)

You can customize the Worker to format messages for your webhook provider. For setup instructions, refer to the [template README](https://github.com/cloudflare/templates/tree/main/workers-builds-notifications-template#readme).

## Available Workers Builds events

<Render file="event-subscriptions/workers-builds-events" product="queues" />