feat: add dedicated portfolio Gitea runner

This commit is contained in:
2026-09-15 14:36:19 +03:30
commit 23196d6884
12 changed files with 313 additions and 0 deletions

18
scripts/setup-runner.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/env bash
set -Eeuo pipefail
repo_root="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$repo_root"
if [[ ! -f .env ]]; then
cp .env.example .env
chmod 600 .env
echo "Created $repo_root/.env. Add the repository runner token, then rerun this script." >&2
exit 1
fi
docker build --pull --tag portfolio-runner-job:node22 .
docker compose config --quiet
docker compose up -d
echo "Runner started. Follow logs with: docker compose logs --follow runner"