#!/usr/bin/env bash # deploy.sh — Called by Woodpecker CI on every push to main. # Can also be run manually for emergency redeployments. # Pulls the latest image from the registry and restarts the stack. set -euo pipefail APP_DIR="$(cd "$(dirname "$0")/.." && pwd)" cd "$APP_DIR" echo "==> Pulling latest image from registry" docker compose pull bridge echo "==> Restarting services" docker compose up -d --remove-orphans echo "==> Status" sleep 3 docker compose ps bridge echo "" echo "=== Deploy complete — https://hl.cast.ph/health ==="