fix: Fixes Docker image building always attempting to build

This commit is contained in:
Tera << 8 2025-05-06 21:50:02 -04:00
parent ef132db2f1
commit 06baeea009
Signed by: imterah
GPG key ID: 8FA7DD57BA6CEA37
2 changed files with 4 additions and 2 deletions

View file

@ -69,7 +69,9 @@
TimeoutSec = 300;
};
script = ''
docker build -t caddy-custom:2.10.0-builder -f ${./volume/Dockerfile} .
if [[ "$(docker images -q caddy-custom:2.10.0-builder 2> /dev/null)" == "" ]]; then
docker build -t caddy-custom:2.10.0-builder -f ${./volume/Dockerfile} .
fi
'';
};