update
Some checks failed
Backend EC - Modal Deployment / build-and-push (push) Successful in 9m21s
Backend EC - Modal Deployment / notify-deploy (push) Failing after 2m14s

This commit is contained in:
DatTT127
2026-07-19 23:30:57 +07:00
parent 4244c4175c
commit d3d91998ab
2 changed files with 31 additions and 0 deletions

View File

@@ -106,4 +106,18 @@ jobs:
sleep 2
done
echo "[deploy] Waiting for Caddy HTTPS endpoint"
for i in {1..30}; do
if curl -sk https://deploy.lumina-msk.io.vn/health > /dev/null 2>&1; then
echo "[deploy] Caddy HTTPS endpoint is healthy"
break
fi
if [ "$i" -eq 30 ]; then
echo "[deploy] Caddy HTTPS endpoint failed health check"
docker logs caddy || true
exit 1
fi
sleep 2
done
echo "[deploy] Deployment completed successfully"

View File

@@ -11,3 +11,20 @@ services:
- .env
environment:
- CD_SERVER_CONFIG=/app/config.yaml
caddy:
image: caddy:2-alpine
container_name: caddy
restart: unless-stopped
network_mode: host
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy_data:/data
- caddy_config:/config
ports:
- "80:80"
- "443:443"
volumes:
caddy_data:
caddy_config: