https://github.com/yegor-usoltsev/drone-email-webhook
Webhook listener for Drone CI / CD notifying commit authors of failed builds via email
https://github.com/yegor-usoltsev/drone-email-webhook
build-automation ci devops drone drone-ci drone-plugin email mail smtp webhook
Last synced: 11 months ago
JSON representation
Webhook listener for Drone CI / CD notifying commit authors of failed builds via email
- Host: GitHub
- URL: https://github.com/yegor-usoltsev/drone-email-webhook
- Owner: yegor-usoltsev
- License: mit
- Created: 2023-05-28T08:09:39.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-07-05T22:38:44.000Z (12 months ago)
- Last Synced: 2025-07-05T23:24:44.562Z (12 months ago)
- Topics: build-automation, ci, devops, drone, drone-ci, drone-plugin, email, mail, smtp, webhook
- Language: Go
- Homepage:
- Size: 304 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# drone-email-webhook
[](https://github.com/yegor-usoltsev/drone-email-webhook/actions)
[](https://codecov.io/github/yegor-usoltsev/drone-email-webhook)
[](https://github.com/yegor-usoltsev/drone-email-webhook/releases)
[](https://hub.docker.com/r/yusoltsev/drone-email-webhook)
[](https://github.com/yegor-usoltsev/drone-email-webhook/pkgs/container/drone-email-webhook)
[](https://hub.docker.com/r/yusoltsev/drone-email-webhook/tags)
Webhook listener for Drone CI / CD notifying commit authors of failed builds via email.
|  |  |
| :--------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------: |
## Usage
### Starting the webhook listener
Pull and run the container:
```bash
docker run -d \
-p 3000:3000 \
-e DRONE_SECRET=your_webhook_secret \
yusoltsev/drone-email-webhook:latest
```
See the [Environment Variables](#environment-variables) table below for all available configuration options.
### Configuring Drone
Configure your Drone server to send webhooks by setting the following environment variables:
```yaml
DRONE_WEBHOOK_ENDPOINT: http://your-webhook-host:3000
DRONE_WEBHOOK_SECRET: your_webhook_secret # Must match DRONE_SECRET in webhook container
```
For more information about Drone webhooks configuration, please refer to
the [official Drone documentation](https://docs.drone.io/webhooks/overview/).
Note: Make sure to replace the placeholder values with your actual configuration values.
### Environment Variables
| KEY | TYPE | DEFAULT | REQUIRED |
| --------------------------- | ---------------------------- | ----------------- | -------- |
| `DRONE_SECRET` | `string` | | Yes |
| `DRONE_SERVER_HOST` | `string` | `0.0.0.0` | Yes |
| `DRONE_SERVER_PORT` | `uint16` | `3000` | Yes |
| `DRONE_EMAIL_SMTP_HOST` | `string` | `localhost` | Yes |
| `DRONE_EMAIL_SMTP_PORT` | `uint16` | `25` | Yes |
| `DRONE_EMAIL_SMTP_USERNAME` | `string` | | No |
| `DRONE_EMAIL_SMTP_PASSWORD` | `string` | | No |
| `DRONE_EMAIL_FROM` | `string` | `drone@localhost` | Yes |
| `DRONE_EMAIL_CC` | `[]string` (comma-separated) | | No |
| `DRONE_EMAIL_BCC` | `[]string` (comma-separated) | | No |
## Docker Images
This application is delivered as a multi-platform Docker image and is available for download from two image registries
of choice: [yusoltsev/drone-email-webhook](https://hub.docker.com/r/yusoltsev/drone-email-webhook)
and [ghcr.io/yegor-usoltsev/drone-email-webhook](https://github.com/yegor-usoltsev/drone-email-webhook/pkgs/container/drone-email-webhook).
## Versioning
This project uses [Semantic Versioning](https://semver.org)
## Contributing
Pull requests are welcome. For major changes,
please [open an issue](https://github.com/yegor-usoltsev/drone-email-webhook/issues/new) first to discuss what you would
like to change. Please make sure to update tests as appropriate.
## License
[MIT](https://github.com/yegor-usoltsev/drone-email-webhook/blob/main/LICENSE)