Pim van den Berg
5ff94a411c
Some checks reported errors
continuous-integration/drone/push Build was killed
17 lines
289 B
Bash
Executable File
17 lines
289 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/swiss:latest; then
|
|
./build.sh
|
|
fi
|