deploy.sh: escape the image-build loop vars for the remote string

This commit is contained in:
Frank
2026-08-22 04:04:24 -07:00
parent 1f4766f233
commit dc421efea4
5 changed files with 212 additions and 71 deletions
+5 -5
View File
@@ -142,11 +142,11 @@ if [ '${COMPOSE_UP[$TARGET]}' = '1' ]; then
# Locally built images: caddy + porkbun module, and loki/alloy + a static
# busybox (their upstream images lack the wget the healthchecks need).
for dir in caddy loki alloy; do
img=franksdank/$dir
[ "$dir" = "caddy" ] && img=franksdank/caddy-porkbun
if ! podman image exists $img:latest; then
echo " $img image missing; building it..."
podman build -t $img:latest -f dankclaw/$dir/Containerfile .
img=franksdank/\$dir
[ \"\$dir\" = caddy ] && img=franksdank/caddy-porkbun
if ! podman image exists \$img:latest; then
echo \" \$img image missing; building it...\"
podman build -t \$img:latest -f dankclaw/\$dir/Containerfile .
fi
done
podman-compose -f '${COMPOSE[$TARGET]}' up -d