#!/usr/bin/env bash set -euo pipefail echo "== stacks ==" sudo docker ps --format '{{.Names}} {{.Status}}' | sort echo "== health ==" curl -fsS http://127.0.0.1:9080/health | head -c 120; echo curl -fsS http://127.0.0.1:3000/api/v1/version; echo curl -fsS http://127.0.0.1:5000/v2/; echo echo "== actions jobs ==" sudo -u postgres psql -d gitea -c "SELECT id, run_id, status FROM action_run_job ORDER BY id DESC LIMIT 8;" echo "== release ==" cat /var/lib/tloto/current.json echo echo "== npm scripts ==" cd ~/games_app sudo npm run phase-b:status | head -20 echo "== ssh forcecommand smoke ==" ssh -o BatchMode=yes -o StrictHostKeyChecking=no -i ~/gitea-deploy-ssh/id_ed25519 deploy@127.0.0.1 \ "/opt/tloto/bin/tloto-deploy --help" | head -20 echo VERIFY_OK