Build Admin / Build image (push) Successful in 8s
compose 1.29.2 aborts with KeyError: 'ContainerConfig' against Docker 28, which broke the deploy on the prod VM. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
28 lines
744 B
Bash
Executable File
28 lines
744 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# elevenlabs.io/scripts/deploy.sh
|
|
# Pull the latest image built by Gitea Actions and restart the proxy.
|
|
set -euo pipefail
|
|
|
|
PROXY_DIR="${PROXY_DIR:-/srv/elevenlabs}"
|
|
cd "${PROXY_DIR}"
|
|
|
|
# compose v1 (1.29.x) breaks against Docker 28 with KeyError: 'ContainerConfig' — prefer v2
|
|
COMPOSE="docker compose"
|
|
docker compose version >/dev/null 2>&1 || COMPOSE="docker-compose"
|
|
|
|
echo "=== [1/4] Pulling latest image ==="
|
|
${COMPOSE} pull
|
|
|
|
echo "=== [2/4] Recreating container ==="
|
|
${COMPOSE} up -d
|
|
|
|
echo "=== [3/4] Status ==="
|
|
${COMPOSE} ps
|
|
|
|
echo "=== [4/4] Recent logs ==="
|
|
${COMPOSE} logs --tail=30 proxy
|
|
|
|
echo ""
|
|
echo "Health: curl -s http://localhost:8082/health"
|
|
echo "TLS: curl -s https://${DOMAIN:-proxy.bildme.ru}/health"
|