alerthub icon indicating copy to clipboard operation
alerthub copied to clipboard

Feature request: hooks

Open Jekotia opened this issue 6 years ago • 3 comments

It would be nice if, when alerthub detects a new release, it would run a specified hook.

For example, when an update to alerthub is detected, it runs a shell script containing the webhook to trigger a build on dockerhub, rebuilding jekotia/alerthub with the latest version of alerthub

Jekotia avatar May 19 '18 03:05 Jekotia

Hey there,

Thanks for the request! I'll look for a way to implement this. For the time being, if that works for you, you can use the unified RSS option of AlertHub, and bind it to IFTTT etc. for a formulae like "If a new item comes to AlertHub's RSS feed, do 'Maker' + Make a web request + POST request to an endpoint etc." to trigger the Docker build.

Would running a shell script suffice, or would you prefer to provide the contents of the script into config ?

Ardakilic avatar May 19 '18 09:05 Ardakilic

I think running the script would be best.

I initially was thinking of webhooks, and then my mind wandered to git commit hooks as I wrote the request and realised it would be better to go the script route. I feel that it provides the greatest flexibility, since you can still easily do a webhook, but can also do more if you so wish.

Jekotia avatar May 25 '18 14:05 Jekotia

I believe this may be obsolete with #37

Ardakilic avatar Mar 02 '22 11:03 Ardakilic