games_app/deploy/gitea-stack/install-all.sh
Your Name 5ce6a6811a
Some checks failed
CI / test-and-build (push) Failing after 25s
Add Gitea CI/CD stack, tloto-deploy, and tagged Compose images
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-17 19:56:39 +02:00

26 lines
789 B
Bash

#!/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/"