#!/usr/bin/env bash # Full Gitea stack install on VPS — does not modify Tloto games_app compose. set -euo pipefail ROOT="$(cd "$(dirname "$0")" && pwd)" cd "$ROOT" bash ./bootstrap-env.sh bash ./bootstrap-host.sh echo "== Pull + start Gitea + registry ==" sudo docker compose pull gitea registry sudo docker compose up -d gitea registry bash ./bootstrap-gitea-admin.sh bash ./register-runner.sh echo "== Smoke ==" curl -fsS -m 10 "http://127.0.0.1:${GITEA_HTTP_PORT:-3000}/" -o /dev/null && echo "GITEA_HTTP_OK" curl -fsS -m 5 "http://127.0.0.1:5000/v2/" && echo "REGISTRY_OK" # Tloto must still be up curl -fsS -m 5 http://127.0.0.1:9080/health | head -c 60; echo echo "INSTALL_ALL_OK" echo "Admin credentials: ~/gitea-admin-credentials.txt" echo "URL: http://191.215.41.53:3000/"