DOCS/journey/troubleshooting/251225_skill_calendar_자동배포_구성.md

45 lines
1.4 KiB
Markdown

# skill-calendar 자동 배포 구성
**날짜**: 2025-12-25
**작성자**: Auto
**관련 파일**: `skill-calendar/.gitea/workflows/deploy.yml`
---
## 목표
skill-calendar 서비스를 Gitea Actions를 통해 51124 서버에 자동 배포하도록 구성
## 해결
### 워크플로우 파일 생성
- `skill-calendar/.gitea/workflows/deploy.yml` 생성
- skill-rag-file 워크플로우 참고하여 skill-calendar에 맞게 수정
- 포트: 8512, 헬스체크: `/health`, 컨테이너명: `skill-calendar`
### 배포 스크립트
- SSH 연결 설정 (포트 51124)
- Git pull (`git pull origin main --rebase`)
- .env 파일 확인
- Docker 빌드 및 재시작 (`docker compose build --no-cache``docker compose up -d`)
- 헬스체크 (최대 10회, 5초 간격)
### 정리
- 기존 `.github/workflows/deploy.yml` 삭제 (Gitea Actions는 `.gitea/workflows/`만 인식)
## 구현 완료
- 커밋: `7ab505c` (워크플로우 추가), `592e728` (.github/workflows 삭제)
- 배포 테스트: 정상 작동 확인
## 교훈
- **Gitea Actions 경로**: `.github/workflows/`가 아닌 `.gitea/workflows/` 경로 사용 필수
- **기존 패턴 재사용**: 다른 스킬(skill-rag-file 등)의 워크플로우를 참고하여 빠르게 구현 가능
- **불필요한 파일 정리**: 사용하지 않는 `.github/workflows/` 파일은 즉시 삭제하여 혼란 방지
## 참고
- `skill-rag-file/.gitea/workflows/deploy.yml`: 참고한 워크플로우 파일