Add Gitea API method for runner registration token
CI - Lint & Test / lint-and-test (push) Successful in 38s Details

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Cloud User 2026-03-11 13:19:44 +09:00
parent 55849432ca
commit 665d66eec1
1 changed files with 6 additions and 2 deletions

View File

@ -121,8 +121,12 @@ sudo chown ubuntu:ubuntu /opt/act_runner
```bash
# 1. Gitea에서 Runner 등록 토큰 발급
# Gitea > 저장소 Settings > Actions > Runners > "Create new Runner" 에서 토큰 복사
# 또는 사이트 전역: Site Administration > Actions > Runners
# 방법 A) Web UI: Gitea > 저장소 Settings > Actions > Runners > "Create new Runner"
# 방법 B) API:
curl -sk -u "$GITEA_ADMIN_USER:$GITEA_ADMIN_PASSWORD" \
-X GET "https://gitea.inje-private.com/api/v1/repos/selee/mlops-architecture/actions/runners/registration-token" \
-H "Content-Type: application/json"
# → {"token":"<REGISTRATION_TOKEN>"} 응답에서 토큰 복사
# 2. Runner 등록
cd /opt/act_runner