Closed Jekotia closed 2 years ago
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 ?
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.
I believe this may be obsolete with #37
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