From 665d66eec1568a0ae767a4df56be7210dd625d79 Mon Sep 17 00:00:00 2001 From: Cloud User Date: Wed, 11 Mar 2026 13:19:44 +0900 Subject: [PATCH] Add Gitea API method for runner registration token Co-Authored-By: Claude Opus 4.6 --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5c6caec..9d1e826 100644 --- a/README.md +++ b/README.md @@ -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":""} 응답에서 토큰 복사 # 2. Runner 등록 cd /opt/act_runner