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

21 lines
389 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/powerdns:4.4-bullseye; then
./debian/11/build.sh
fi
if updates_available pommib/powerdns:4.6-bookworm; then
./debian/12/build.sh
fi