https://github.com/goliatone/rabbithook
Transform Webhooks to AMQP events
https://github.com/goliatone/rabbithook
Last synced: 2 months ago
JSON representation
Transform Webhooks to AMQP events
- Host: GitHub
- URL: https://github.com/goliatone/rabbithook
- Owner: goliatone
- Created: 2016-06-15T17:51:39.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-07-11T21:04:59.000Z (almost 9 years ago)
- Last Synced: 2025-02-13T20:52:03.349Z (4 months ago)
- Language: JavaScript
- Size: 1.02 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## RabbitHook
Transform WebHooks from services like GitHub, Dockerhub, or Travis into AMQP events.Used with [rabbithook-client][rabbithook-client] to put together a build pipeline.
Build docker images after pushing to a Github repo, push image to Dockerhub. On Dockerhub updates, update container.### Handlers
#### GitHub
To read more about how to set up a webhook in Github, read [this documentation page][github-doc].
Configuration needs an environment variable with the github secret:
* NODE_GITHUB_SECRETGenerates the following AMQP topic:
`rabbithook.github`If you are using ascoltatore, the topic is `rabbithook/github`.
#### Dockerhub
To read more about how to set up a webhook in Dockerhub, read [this documentation page][dockerhub-doc].
Generates the following AMQP topic:
`rabbithook.dockerhub`If you are using ascoltatore, the topic is `rabbithook/dockerhub`.
#### TravisCI
To read more about how to set up a webhook in TravisCI, read [this documentation page][travisci-doc].
Configuration needs an environment variable with the github secret:
* NODE_TRAVISCI_TOKENGenerates the following AMQP topic:
`rabbithook.travisci`If you are using ascoltatore, the topic is `rabbithook/travisci`.
### Configuration
The application is dependent on two environment variables to connect to AMQP:
* NODE_AMQP_ENDPOINT
* NODE_AMQP_EXCHANGE### TODO:
Build up AMQP topics to be more descriptive and easier to route
Integrate TravisCIhttps://www.npmjs.com/package/travisci-webhook/
https://github.com/chrisjaure/travisci-webhook-handler[rabbithook-client]:https://github.com/goliatone/rabbithook-client
[github-doc]:https://developer.github.com/webhooks/creating/
[dockerhub-doc]:https://docs.docker.com/docker-hub/webhooks/
[travisci-doc]:https://docs.travis-ci.com/user/notifications/#Webhook-notification