Skip to content
/ checker Public

Receive notifications on your gotify/discord server when a running image is updated on the Docker registry.

License

Notifications You must be signed in to change notification settings

b4too/checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 

Repository files navigation

checker

Docker image update checker with discord/gotify webhook integration

🇫🇷 Version Française 🇫🇷

A little script that will notify you on your discord server, here is what you can expect for discord :

discord

And for gotify :

gotify

For help recovering your discord webhook url see below :

First

Then

Then

"Copy Webhook URL" will get you the url that needs to be put at the 3rd line of checker.sh, in the "token" variable.

If like me you would rather use gotify, see here to recover the token that also needs to be put at the 3rd line of the script.

  • Installation

    sudo apt install jq curl wget
    cd && mkdir image_checker && cd image_checker
    wget https://raw.githubusercontent.com/methatronc/checker/main/checker.sh
    chmod +x checker.sh
    su [the user that will execute this cron and that MUST NOT have any special privileges since we are retrieving external data]
    crontab -e

And add the following line for instance :

0 5 * * * /home/[your_username]/image_checker/checker.sh > /home/[your_username]/image_checker/cron.log 2>&1
  • Now you will have your daily report at 5am on your discord server if any image currently used on the host executing the cron gets updated.

  • Do not forget to specify the gotify/discord token at the 3rd line or else nothing will happen.

  • If you have anything to add please do, some images might need other particular treatment.

About

Receive notifications on your gotify/discord server when a running image is updated on the Docker registry.

Topics

Resources

License

Stars

Watchers

Forks

Languages