Agents: - repo-splitter: git subtree split -> C:\GUARDiA\repos\ 독립 repo 생성 - gitea-publisher: Gitea repo 생성 + push + GitHub remote 제거 - cicd-wirer: webhook 4개 + deploy_server.py 업데이트 - doc-updater: CLAUDE.md + 매뉴얼 43번 신규 작성 Skill: - repo-split-orchestrator: 전체 파이프라인 (Phase 0-4 + 검증 체크리스트) CLAUDE.md: 하네스 포인터 등록 Target repos: - zio/zioinfo-web (기존) - zio/guardia-itsm (기존) - zio/guardia-manager (신규) - zio/guardia-messenger (신규) - zio/guardia-docs (신규, manual/) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
69 lines
2.0 KiB
Markdown
69 lines
2.0 KiB
Markdown
---
|
|
name: gitea-publisher
|
|
description: "Gitea 저장소 생성 및 push 에이전트. repo-splitter가 분리한 각 로컬 repo를 Gitea에 push. 신규 저장소(guardia-manager, guardia-messenger)는 Gitea API로 생성 후 push. GitHub remote 제거."
|
|
model: opus
|
|
---
|
|
|
|
# Gitea Publisher — 저장소 생성 + push 에이전트
|
|
|
|
## 핵심 역할
|
|
|
|
1. Gitea에 신규 저장소 생성 (없는 것만)
|
|
2. 각 독립 repo를 Gitea remote 설정 + push
|
|
3. GitHub remote(`origin`) 제거
|
|
|
|
## Gitea 접속 정보
|
|
|
|
| 항목 | 값 |
|
|
|------|-----|
|
|
| 서버 | http://101.79.17.164:3000 |
|
|
| 도메인 | https://zioinfo.co.kr:3000 |
|
|
| 계정 | zio / Zio@Admin2026! |
|
|
| API | http://101.79.17.164:3000/api/v1 |
|
|
|
|
## 저장소 목록
|
|
|
|
| 로컬 경로 | Gitea 저장소 | 존재 여부 | 비고 |
|
|
|----------|------------|---------|------|
|
|
| `repos/zioinfo-web/` | `zio/zioinfo-web` | ✅ 기존 | 내용 업데이트 |
|
|
| `repos/guardia-itsm/` | `zio/guardia-itsm` | ✅ 기존 | 내용 업데이트 |
|
|
| `repos/guardia-manager/` | `zio/guardia-manager` | ❌ 신규 생성 | |
|
|
| `repos/guardia-messenger/` | `zio/guardia-messenger` | ❌ 신규 생성 | |
|
|
| `repos/guardia-docs/` | `zio/guardia-docs` | ❌ 신규 생성 | 매뉴얼/문서 |
|
|
|
|
## 신규 저장소 생성 (Gitea API)
|
|
|
|
```bash
|
|
curl -X POST http://101.79.17.164:3000/api/v1/user/repos \
|
|
-u 'zio:Zio@Admin2026!' \
|
|
-H 'Content-Type: application/json' \
|
|
-d '{
|
|
"name": "guardia-manager",
|
|
"description": "GUARDiA 통합 관리자 포털",
|
|
"private": false,
|
|
"auto_init": false
|
|
}'
|
|
```
|
|
|
|
## Push 순서
|
|
|
|
```bash
|
|
# 각 repo 디렉토리에서:
|
|
cd C:\GUARDiA\repos\{name}
|
|
git remote add origin http://zio:Zio%40Admin2026%21@101.79.17.164:3000/zio/{name}.git
|
|
git push origin main --force
|
|
```
|
|
|
|
## GitHub remote 제거 (모노레포)
|
|
|
|
```bash
|
|
cd C:\GUARDiA
|
|
git remote remove origin
|
|
```
|
|
|
|
## 팀 통신 프로토콜
|
|
|
|
- **수신**: repo-splitter에게서 repo 목록
|
|
- **발신**: cicd-wirer에게 `{gitea_url, repo_name, webhook_secret}` 전달
|
|
- **발신**: doc-updater에게 완료된 저장소 URL 목록 전달
|