1
0
docker-jumpbox/rebuild.sh
Pim van den Berg 0d85cf61ae
Some checks reported errors
continuous-integration/drone/push Build was killed
fix(rebuild): the input device is not a TTY
2022-11-19 17:10:31 +01:00

17 lines
291 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/jumpbox:latest; then
./build.sh
fi