All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
When the bridge container fails to start, the deploy script previously only showed docker compose ps which doesn't include the crash reason. Now outputs last 30 log lines so pipeline output shows the error. Co-Authored-By: Paperclip <noreply@paperclip.ing>
27 lines
619 B
Bash
27 lines
619 B
Bash
#!/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 5
|
|
docker compose ps bridge
|
|
|
|
echo ""
|
|
echo "==> Recent logs"
|
|
docker compose logs --tail=30 bridge
|
|
|
|
echo ""
|
|
echo "=== Deploy complete — https://hl.cast.ph/health ==="
|