Add Gitea API method for runner registration token
CI - Lint & Test / lint-and-test (push) Successful in 38s
Details
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:
parent
55849432ca
commit
665d66eec1
|
|
@ -121,8 +121,12 @@ sudo chown ubuntu:ubuntu /opt/act_runner
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# 1. Gitea에서 Runner 등록 토큰 발급
|
# 1. Gitea에서 Runner 등록 토큰 발급
|
||||||
# Gitea > 저장소 Settings > Actions > Runners > "Create new Runner" 에서 토큰 복사
|
# 방법 A) Web UI: Gitea > 저장소 Settings > Actions > Runners > "Create new Runner"
|
||||||
# 또는 사이트 전역: Site Administration > Actions > Runners
|
# 방법 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 등록
|
# 2. Runner 등록
|
||||||
cd /opt/act_runner
|
cd /opt/act_runner
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue