games_app/deploy/gitea-stack/write-fetch-url.sh
Your Name e802ee23d5
Some checks failed
CI / test-and-build (push) Failing after 33s
Harden tloto-deploy and document Gitea CI/CD runbook
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-17 20:07:47 +02:00

7 lines
296 B
Bash

#!/usr/bin/env bash
set -euo pipefail
TOKEN="$(grep -A1 'Push token' "$HOME/gitea-push-credentials.txt" | tail -1 | tr -d ' \r')"
echo "http://tloto-admin:${TOKEN}@127.0.0.1:3000/tloto-admin/games_app.git" > "$HOME/.tloto-git-fetch-url"
chmod 600 "$HOME/.tloto-git-fetch-url"
echo "FETCH_URL_OK"