From 573cdb99cb95c8d10e5a114c6e9c047ae63d373c Mon Sep 17 00:00:00 2001 From: happybell80 Date: Mon, 14 Jul 2025 18:24:40 +0900 Subject: [PATCH] Add organization-level runner configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Document transition from individual to shared runner - Include token generation and registration process - Add troubleshooting for organization runner issues - Record runner token: kn5nLcoJgHUh4vgdPTF2cjL9eOHPOArWIHGFJIQq ๐Ÿค– Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .../20250714_gitea_actions_setup.md | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/docs/troubleshooting/20250714_gitea_actions_setup.md b/docs/troubleshooting/20250714_gitea_actions_setup.md index 3ce4198..4b86506 100644 --- a/docs/troubleshooting/20250714_gitea_actions_setup.md +++ b/docs/troubleshooting/20250714_gitea_actions_setup.md @@ -186,12 +186,71 @@ sudo -l sudo nginx -t ``` +## ์กฐ์ง ๋ ˆ๋ฒจ Runner ์„ค์ • (์ถ”๊ฐ€) + +### ๊ฐœ๋ณ„ ์ €์žฅ์†Œ โ†’ ์กฐ์ง ๊ณต์œ  Runner ๋ณ€๊ฒฝ + +**๋ฐฐ๊ฒฝ**: ๊ฐ ์ €์žฅ์†Œ๋งˆ๋‹ค ๊ฐœ๋ณ„ runner๋ฅผ ์„ค์ •ํ•˜๋Š” ๊ฒƒ๋ณด๋‹ค ์กฐ์ง ๋‹จ์œ„ ๊ณต์œ  runner๊ฐ€ ํšจ์œจ์  + +**์ ˆ์ฐจ**: + +1. **๊ธฐ์กด runner ์ •๋ฆฌ**: +```bash +killall act_runner +rm -f .runner +rm -f /etc/act_runner/.runner +``` + +2. **์กฐ์ง runner ํ† ํฐ ์ƒ์„ฑ**: + - Gitea ์›น โ†’ Organizations โ†’ ivada_Ro-being โ†’ Settings โ†’ Actions โ†’ Runners + - "Add new runner" ํด๋ฆญ + - ์กฐ์ง ํ† ํฐ ์ƒ์„ฑ: `kn5nLcoJgHUh4vgdPTF2cjL9eOHPOArWIHGFJIQq` + +3. **์กฐ์ง ๋ ˆ๋ฒจ runner ๋“ฑ๋ก**: +```bash +cd /etc/act_runner +act_runner register +# URL: http://localhost:3000 +# Token: kn5nLcoJgHUh4vgdPTF2cjL9eOHPOArWIHGFJIQq +# Name: org-shared-runner +# Labels: self-hosted +``` + +4. **์‹คํ–‰**: +```bash +cd /etc/act_runner +nohup act_runner daemon --config .runner > ~/org_runner.log 2>&1 & +``` + +**์žฅ์ **: +- โœ… ๋ชจ๋“  ์กฐ์ง ์ €์žฅ์†Œ์—์„œ ์ž๋™ ์‚ฌ์šฉ ๊ฐ€๋Šฅ +- โœ… ํ†ตํ•ฉ ๊ด€๋ฆฌ ๋ฐ ๋ชจ๋‹ˆํ„ฐ๋ง +- โœ… Runner ๋ฆฌ์†Œ์Šค ํšจ์œจ์  ํ™œ์šฉ +- โœ… ๊ถŒํ•œ ์„ค์ • ๊ฐ„ํŽธ + +**์ ์šฉ ์ €์žฅ์†Œ**: +- nginx-infra +- test (Python FastAPI) +- frontend-base +- api-base +- ๊ธฐํƒ€ ๋ชจ๋“  ivada_Ro-being ์ €์žฅ์†Œ + +### ํŠธ๋Ÿฌ๋ธ”์ŠˆํŒ… (์กฐ์ง Runner) + +**๋ฌธ์ œ**: `runner registration token not found` +**์›์ธ**: ํ† ํฐ ๋งŒ๋ฃŒ ๋˜๋Š” ์ž˜๋ชป๋œ ์กฐ์ง ์„ค์ • +**ํ•ด๊ฒฐ**: ์ƒˆ ํ† ํฐ ์ƒ์„ฑ ๋˜๋Š” ์กฐ์ง Actions ์„ค์ • ํ™•์ธ + +**๋ฌธ์ œ**: ์กฐ์ง runner๊ฐ€ ๊ฐœ๋ณ„ ์ €์žฅ์†Œ์—์„œ ์ธ์‹ ์•ˆ๋จ +**ํ•ด๊ฒฐ**: ์ €์žฅ์†Œ Actions ์„ค์ •์—์„œ "Allow organization runners" ํ™œ์„ฑํ™” + ## ์ฐธ๊ณ  ์ž๋ฃŒ - **Gitea Actions ๋ฌธ์„œ**: https://docs.gitea.io/en-us/actions/ - **act_runner GitHub**: https://github.com/nektos/act_runner - **Nginx ์„ค์ •**: `/etc/nginx/sites-available/default` - **์›Œํฌํ”Œ๋กœ์šฐ ํŒŒ์ผ**: `.gitea/workflows/deploy.yml` +- **์กฐ์ง Runner ๋กœ๊ทธ**: `~/org_runner.log` --- *์ด ๋ฌธ์„œ๋Š” Claude์— ์˜ํ•ด ์ž๋™ ์ƒ์„ฑ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.* \ No newline at end of file