games_app/deploy/gitea-stack/fix-wrapper-and-ci-status.sh
Your Name 156d37ea26
All checks were successful
CI / test-and-build (push) Successful in 36s
Fix CI runner Docker image and deploy SSH ForceCommand wrapper
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-17 20:38:57 +02:00

13 lines
619 B
Bash

#!/usr/bin/env bash
set -euo pipefail
bash ~/games_app/deploy/release/install-deploy-tool.sh
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 -25
sudo -u postgres psql -d gitea <<'SQL'
UPDATE action_run_job SET status=3, stopped=EXTRACT(EPOCH FROM NOW())::bigint WHERE id=7 AND status IN (1,2,6);
UPDATE action_run SET status=3, stopped=EXTRACT(EPOCH FROM NOW())::bigint WHERE id=7 AND status IN (1,2,6);
SELECT id, status FROM action_run_job WHERE id=7;
SELECT id, status FROM action_run WHERE id=7;
SQL
echo WRAPPER_OK