Skip to content

Notifications

Caleb Lemoine edited this page Jan 14, 2019 · 15 revisions

Webhooks

Ouroboros has the ability to trigger multiple webhooks for slack, discord, pushover integration or other automation without the need to specify the webhook type. Ouroboros will auto determine where the webhook should be sent depending on the url. Detailed request information can be seen by enabling the debug loglevel. If the appropriate args/environment variables are supplied, a POST request will be sent to specified URLs with payload like so:

{"text": "Container: alpine updated from sha256:34ea7509dcad10aa92310f2b41e3afbabed0811ee3a902d6d49cb90f075fe444 to sha256:3f53bb00af943dfdf815650be70c0fa7b426e56a66f5e3362b47a129d57d5991"}

Example

docker run -d --name ouroboros \
 -v /var/run/docker.sock:/var/run/docker.sock \
 pyouroboros/ouroboros --webhook-urls https://hooks.slack.com/something https://discordapp.com/api/webhooks/something

Discord alt text

Pushover alt text

Clone this wiki locally