This commit is contained in:
Pim van den Berg 2022-10-20 13:42:52 +02:00
commit f1117d3bd5
5 changed files with 186 additions and 0 deletions

14
rebuild.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/sh
updates_available () {
docker pull "$1"
if test "$(docker run -it --rm "$1" /bin/sh -c 'apt -qqq update && apt -qq list --upgradable')" != ""; then
return 0
else
return 1
fi
}
if updates_available pommib/apache2-itk:latest; then
./build.sh
fi