mirror of
https://github.com/mag37/dockcheck.git
synced 2026-02-15 15:58:13 +01:00
Added notification release notes url function
This commit is contained in:
parent
999694985a
commit
91ff4aaaa7
2 changed files with 20 additions and 0 deletions
17
notify_templates/releasenotes.sh
Normal file
17
notify_templates/releasenotes.sh
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
### Snippet to use together with notify.sh
|
||||||
|
#
|
||||||
|
# Requires a space-separated list-file of container-name and release-note-url, modify the example file "urls.list"
|
||||||
|
# Copy urls.list and releasenotes.sh to the same directory as dockcheck.sh.
|
||||||
|
#
|
||||||
|
# Add the next line (uncommented) to any notification script you're using, after the "UpdToString"-variable setup
|
||||||
|
# [ -s "$ScriptWorkDir"/releasenotes.sh ] && { source "$ScriptWorkDir"/releasenotes.sh ; UpdToString=$( releasenotes ) ; }
|
||||||
|
|
||||||
|
releasenotes() {
|
||||||
|
for update in ${Updates[@]}; do
|
||||||
|
found=false
|
||||||
|
while read -r container url; do
|
||||||
|
[[ $update == $container ]] && printf "%s -> %s\n" "$update" "$url" && found=true
|
||||||
|
done < urls.list
|
||||||
|
[[ $found == false ]] && printf "%s\n" "$update"
|
||||||
|
done
|
||||||
|
}
|
||||||
3
notify_templates/urls.list
Normal file
3
notify_templates/urls.list
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
apprise-api https://github.com/linuxserver/docker-apprise-api/releases
|
||||||
|
homer https://github.com/bastienwirtz/homer/releases
|
||||||
|
nginx https://github.com/docker-library/official-images/blob/master/library/nginx
|
||||||
Loading…
Add table
Add a link
Reference in a new issue