1
0
docker-jumpbox/rebuild.sh

17 lines
291 B
Bash
Raw Permalink Normal View History

2022-09-09 11:37:37 +02:00
#!/bin/sh
set -x
2022-09-09 11:37:37 +02:00
updates_available () {
2022-09-15 14:49:13 +02:00
docker pull "$1"
if test "$(docker run --rm "$1" /bin/sh -c 'apt -qqq update && apt -qq list --upgradable')" != ""; then
2022-09-09 11:37:37 +02:00
return 0
else
return 1
fi
}
if updates_available pommib/jumpbox:latest; then
./build.sh
fi