1
0
docker-apache2-itk/rebuild.sh
Pim van den Berg 3583eead20
All checks were successful
continuous-integration/drone/push Build is passing
fix(rebuild): the input device is not a TTY
2022-11-19 17:01:34 +01:00

17 lines
295 B
Bash
Executable File

#!/bin/sh
set +x
updates_available () {
docker pull "$1"
if test "$(docker run --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