https://github.com/b4too/checker
Receive notifications on your gotify/discord server when a running image is updated on the Docker registry.
https://github.com/b4too/checker
bash discord docker gotify push-notifications script webhook
Last synced: 3 months ago
JSON representation
Receive notifications on your gotify/discord server when a running image is updated on the Docker registry.
- Host: GitHub
- URL: https://github.com/b4too/checker
- Owner: b4too
- License: apache-2.0
- Created: 2021-09-25T13:47:58.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-06-30T19:25:42.000Z (over 1 year ago)
- Last Synced: 2024-10-04T02:32:10.875Z (over 1 year ago)
- Topics: bash, discord, docker, gotify, push-notifications, script, webhook
- Language: Shell
- Homepage:
- Size: 73.2 KB
- Stars: 16
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# checker
## Docker image update checker with discord/gotify webhook integration
🇫🇷 [Version Française](https://github.com/methatronc/checker/blob/main/README_FR.md) 🇫🇷
A little script that will notify you on your discord server, here is what you can expect for discord :

And for gotify :

For help recovering your discord webhook url see below :



"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](https://gotify.net/docs/pushmsg) to recover the token that also needs to be put at the 3rd line of the script.
* **Installation**
``` bash
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 :
``` bash
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.