deploy.sh: escape the image-build loop vars for the remote string
This commit is contained in:
+5
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user