cron: dockcheck updates itself, and notifies for every container
- Install dockcheck as a git clone in ~/.local/share/dockcheck with AutoSelfUpdate (git pull also updates notify templates and urls.list); no pinned versions. regctl is refreshed weekly by run_dockcheck.sh. - Since dockcheck ~v0.7, OnlyLabel skips unlabelled containers entirely, so they got no update notices. run_dockcheck.sh now runs twice: update labelled containers quietly, then check everything and notify once. - Running dockcheck.sh by hand now checks everything and changes nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a5cdfded37
commit
62cdf879f5
4 files changed
+134
-104
No files matched your search
@@ -1,10 +1,22 @@
|
||||
# Dockcheck Configuration (options: default.config in mag37/dockcheck)
|
||||
# Auto-updates containers labelled mag37.dockcheck.update=true, and sends a
|
||||
# Gotify notice for anything else with an update. Uncomment DontUpdate to
|
||||
# only check.
|
||||
# DontUpdate=true
|
||||
OnlyLabel=true
|
||||
# Dockcheck configuration (all options: default.config in mag37/dockcheck)
|
||||
# Managed by ansible (roles/cron). This file is sourced as bash.
|
||||
#
|
||||
# Modes, picked by run_dockcheck.sh with an environment variable:
|
||||
# DC_UPDATE=1 auto-update containers labelled mag37.dockcheck.update=true,
|
||||
# no notification
|
||||
# DC_NOTIFY=1 check every container, send one Gotify notice for updates
|
||||
# neither (running dockcheck.sh by hand) check every container, no
|
||||
# updates, no notification
|
||||
AutoMode=true
|
||||
if [[ "${DC_UPDATE:-}" == 1 ]]; then
|
||||
OnlyLabel=true
|
||||
else
|
||||
DontUpdate=true
|
||||
fi
|
||||
Notify=$([[ "${DC_NOTIFY:-}" == 1 ]] && echo true || echo false)
|
||||
|
||||
# dockcheck updates itself (git pull in ~/.local/share/dockcheck) each run
|
||||
AutoSelfUpdate=true
|
||||
|
||||
# Only take an image once it's at least this many days old, so a broken
|
||||
# release has time to be fixed before it's applied unattended. Newer ones are
|
||||
@@ -25,9 +37,6 @@ MonoMode=true
|
||||
# Add release-note links (from urls.list) to each update listed
|
||||
PrintReleaseURL=true
|
||||
|
||||
# Enable notifications
|
||||
Notify=true
|
||||
|
||||
# Exclude containers from checking
|
||||
Exclude="dawarich_redis,dawarich_db"
|
||||
|
||||
|
||||
Reference in new issue
Block a user