Docker Hub webhook for slack notification after build
https://slack.com/apps/A0F7XDUAZ-incoming-webhooks
This application is provided as a Docker image, so you can run it wherever you like.
- GitHub Container Registry (Recommended)
ghcr.io/sue445/dockerhub-slack-webhook:latest: Use latest versionghcr.io/sue445/dockerhub-slack-webhook:X.Y.Z: Use specified version
- Google Artifact Registry: If you want to run this app on Cloud Run, use this image
us-docker.pkg.dev/dockerhub-slack-webhook/dockerhub-slack-webhook/app:latest: Use latest versionus-docker.pkg.dev/dockerhub-slack-webhook/dockerhub-slack-webhook/app:X.Y.Z: Use specified versionus-docker.pkg.dev/dockerhub-slack-webhook/dockerhub-slack-webhook/app:edge: The contents of the main branch are pushed to this tag
SLACK_WEBHOOK_URL(Required) : Incoming Webhook URLPUMA_THREADS_MIN: Puma minimum threads count. default is0PUMA_THREADS_MAX: Puma minimum threads count. default is5PUMA_WORKERS: Puma workers count. default is1PUMA_PORT: Puma port. default is8080DEBUG_LOGGING: Iftrueis set, debug logs are outputSENTRY_DSN: Sentry DSN. This variable is optional. If you want to use Sentry, please set DSN
Register webhook url
e.g.
https://example.com/webhook- Without
channelquery, notify toSLACK_CHANNEL
- Without
https://example.com/webhook?channel=other_channel- With
channelquery, notify to specific channel. (#is needless)
- With
Run at local
docker compose up --buildThis application was offered as a Heroku application, but since Heroku is ending its free plan, I have made it possible to run it outside of Heroku.
So this app can run outside of Heroku.
If you want to run this app on Heroku, browse heroku branch and click "Deploy to Heroku" button.

