I'm using my own private Docker registry and I would like to send Slack notifications when a new image is pushed.
I used Huginn to catch registry webhook notifications and send to Slack. My issue is that Docker registry send multiple notifications when an image is pushed with same informations:
"action": "push"
How can I send only one notification from docker registry? Or differenciate the last notification?
I found the solution!
I check only action == push and mediaType == application/vnd.docker.distribution.manifest.v2+json
timeout and backoff default is ns not ms
notifications:
endpoints:
- name: webhook
disabled: false
url: http://example.com
timeout: 3000ms
threshold: 5
backoff: 1S