Use the already deployed service at https://hooks-slack-dockerhub.herokuapp.com
You can clone the repo dciccale/slack-dockerhub-integration and run this service in your own server. Dockerfile provided.
To build the image and run the container
$ npm run build
$ npm run container
To stop the container
$ npm stop
Set up an incoming webhook integration in your Slack team to try it out.
See full documentation on incoming webhooks
After creating your incoming webhook, you will get a url like this one:
https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX
Change the domain from hooks.slack.com
to hooks-slack-dockerhub.herokuapp.com
Create a new webhook on DockerHub and paste the url:
https://hooks-slack-dockerhub.herokuapp.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX
Done!