https://github.com/julian-eggers/dockerhub-webhook-forwarder
Provides a dockerhub webhook-endpoint and forwards events to a message broker like RabbitMQ or AWS SQS.
https://github.com/julian-eggers/dockerhub-webhook-forwarder
aws-sqs ci ci-cd docker dockerhub java rabbitmq spring spring-boot webhook
Last synced: 6 months ago
JSON representation
Provides a dockerhub webhook-endpoint and forwards events to a message broker like RabbitMQ or AWS SQS.
- Host: GitHub
- URL: https://github.com/julian-eggers/dockerhub-webhook-forwarder
- Owner: julian-eggers
- License: mit
- Created: 2016-02-07T16:40:41.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-07-23T04:16:14.000Z (almost 5 years ago)
- Last Synced: 2025-07-22T01:57:05.577Z (12 months ago)
- Topics: aws-sqs, ci, ci-cd, docker, dockerhub, java, rabbitmq, spring, spring-boot, webhook
- Language: Java
- Homepage:
- Size: 85 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
dockerhub-webhook-forwarder
===========================
[](https://www.codacy.com/app/eggers-julian/dockerhub-webhook-forwarder)
[](https://coveralls.io/github/julian-eggers/dockerhub-webhook-forwarder?branch=master)
[](https://travis-ci.org/julian-eggers/dockerhub-webhook-forwarder)
Provides a dockerhub webhook-endpoint and forwards events to a message broker like RabbitMQ or AWS SQS.
## Docker
[Dockerhub](https://hub.docker.com/r/jeggers/dockerhub-webhook-forwarder/)
## Setup
1. Start dockerhub-webhook-forwarder (Docker recommended, [Examples](https://github.com/julian-eggers/dockerhub-webhook-forwarder/wiki#docker-examples))
2. Add webhook-url to your dockerhub repositories (http://docker-webhook-forwarder/)
3. Push any tag
| Property | Required | Default | Info |
| -------- | -------- | ------- | ---- |
| --request.token | no | | http://docker-webhook-forwarder/?token=XYZ |
## Event forwarding
You can choose between the [original event](https://docs.docker.com/docker-hub/webhooks/) or the following compressed version.
```json
{
"namespace" : "jeggers",
"repositoryName" : "dockerhub-webhook-forwarder",
"tag" : "latest",
"image" : "jeggers/dockerhub-webhook-forwarder:latest"
}
```
### RabbitMQ
| Property | Required | Default |
| -------- | -------- | ------- |
| --webhookevent.forward.rabbitmq.hosts | yes | |
| --webhookevent.forward.rabbitmq.username | no | guest |
| --webhookevent.forward.rabbitmq.password | no | guest |
| --webhookevent.forward.rabbitmq.exchange.name | no | io.docker |
| --webhookevent.forward.rabbitmq.routing-key.prefix | no | webHookEvent (results in "webHookEvent.compressed" and "webHookEvent.original") |
### AWS SQS
| Property | Required | Default | Info |
| -------- | -------- | ------- | ---- |
| --webhookevent.forward.awssqs.access-key | yes | | [Policy](https://github.com/julian-eggers/dockerhub-webhook-forwarder/wiki/AWS-SQS#policy) |
| --webhookevent.forward.awssqs.secret-key | yes | | |
| --webhookevent.forward.awssqs.region | yes | | [Regions](https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/regions/Regions.html) |
| --webhookevent.forward.awssqs.queues.original | no | | |
| --webhookevent.forward.awssqs.queues.compressed | no | | |
You have to specify at least one queue.
## Build & Release
### Build
```
mvn clean package dockerfile:build
```
### Release
```
mvn clean package dockerfile:build dockerfile:tag@tag-latest dockerfile:tag@tag-version dockerfile:push@push-latest dockerfile:push@push-version github-release:release
```