Commit Graph

15 Commits

Author SHA1 Message Date
kjh2064 6ed3de2749 Separate QuantEngine database deployment
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (push) Failing after 6s
Quant Engine CI/CD Pipeline / validate-core (push) Failing after 11s
Quant Engine CI/CD Pipeline / validate-ui-and-storage (push) Has been skipped
2026-07-01 13:55:03 +09:00
kjh2064 fe8ff44d3f fix(ci): accept auth redirects in deploy verification
Quant Engine CI/CD Pipeline / validate-core (push) Failing after 11s
Quant Engine CI/CD Pipeline / validate-ui-and-storage (push) Has been skipped
Deploy to Production / Build & Deploy to Production (push) Failing after 3m8s
2026-07-01 13:14:26 +09:00
kjh2064 60022ed214 chore(ci): consolidate production deploy workflow
Quant Engine CI/CD Pipeline / validate-core (push) Failing after 8s
Quant Engine CI/CD Pipeline / validate-ui-and-storage (push) Has been skipped
Deploy to Production / Build & Deploy to Production (push) Failing after 1m48s
2026-07-01 13:07:02 +09:00
kjh2064 49f5db6b72 feat(layout): 좌측하단 내비게이션 드로어에 버전 정보 및 배포 일시 추가 및 빌드 자동화 연계
Deploy to Production / Build & Deploy to Production (push) Successful in 1m35s
Snapshot Admin Deployment / build-and-deploy (push) Failing after 46s
Quant Engine CI/CD Pipeline / validate-core (push) Failing after 8s
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (push) Failing after 6s
Quant Engine CI/CD Pipeline / validate-ui-and-storage (push) Has been skipped
2026-06-29 12:35:19 +09:00
kjh2064 848c9029e5 fix(deploy): 헬스체크 원격 bash 히어독 내부 변수 이스케이프 오류 수정 (백슬래시 정상화)
Quant Engine CI/CD Pipeline / validate-core (push) Failing after 7s
Quant Engine CI/CD Pipeline / validate-ui-and-storage (push) Has been skipped
Snapshot Admin Deployment / build-and-deploy (push) Failing after 47s
Deploy to Production / Build & Deploy to Production (push) Successful in 1m10s
2026-06-29 12:33:33 +09:00
kjh2064 704a168cda refactor(deploy): TaxBaik 성공 사례(run 458) 기반 단일 빌드/배포 파이프라인 개편 및 텔레그램 연동 강화
Quant Engine CI/CD Pipeline / validate-ui-and-storage (push) Has been skipped
Snapshot Admin Deployment / build-and-deploy (push) Failing after 44s
Quant Engine CI/CD Pipeline / validate-core (push) Failing after 7s
Deploy to Production / Build & Deploy to Production (push) Failing after 1m33s
2026-06-29 12:26:13 +09:00
kjh2064 79f4a45b98 fix(ci): change Synology venv path to home dir and setup python step in deploy workflow
Quant Engine CI/CD Pipeline / validate-core (push) Failing after 8s
Quant Engine CI/CD Pipeline / validate-ui-and-storage (push) Has been skipped
Snapshot Admin Deployment / build-and-deploy (push) Failing after 45s
Deploy to Production / Build Release Package (push) Successful in 1m40s
Deploy to Production / Deploy to Production Server (push) Failing after 16s
Deploy to Production / Post-Deployment Checks (push) Has been skipped
2026-06-29 12:15:31 +09:00
kjh2064 78564c5b41 fix(ci): ensure Temp directory and dummy packet json exist to avoid test crashes
Quant Engine CI/CD Pipeline / validate-core (push) Failing after 8s
Quant Engine CI/CD Pipeline / validate-ui-and-storage (push) Has been skipped
Snapshot Admin Deployment / build-and-deploy (push) Failing after 34s
Deploy to Production / Build Release Package (push) Failing after 19s
Deploy to Production / Deploy to Production Server (push) Has been skipped
Deploy to Production / Post-Deployment Checks (push) Has been skipped
2026-06-29 11:38:49 +09:00
kjh2064 c5372ef488 fix(deploy): bypass ssh host verification and fix remote health check endpoint
Quant Engine CI/CD Pipeline / validate-core (push) Failing after 7s
Quant Engine CI/CD Pipeline / validate-ui-and-storage (push) Has been skipped
Deploy to Production / Build Release Package (push) Failing after 19s
Deploy to Production / Deploy to Production Server (push) Has been skipped
Deploy to Production / Post-Deployment Checks (push) Has been skipped
Snapshot Admin Deployment / build-and-deploy (push) Failing after 35s
2026-06-29 11:37:45 +09:00
kjh2064 d7e937e67c feat(telegram): configure deploy status and error level logging notification via Telegram API
Deploy to Production / Build Release Package (push) Failing after 19s
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (push) Failing after 5s
Deploy to Production / Deploy to Production Server (push) Has been skipped
Deploy to Production / Post-Deployment Checks (push) Has been skipped
Snapshot Admin Deployment / build-and-deploy (push) Failing after 37s
Quant Engine CI/CD Pipeline / validate-core (push) Failing after 2m18s
Quant Engine CI/CD Pipeline / validate-ui-and-storage (push) Has been skipped
2026-06-29 11:11:44 +09:00
kjh2064 c888486635 refactor(deploy): minimize downtime and fix health check subpath (CLAUDE.md guidelines)
Deploy to Production / Build Release Package (push) Failing after 16s
Deploy to Production / Deploy to Production Server (push) Has been skipped
Deploy to Production / Post-Deployment Checks (push) Has been skipped
Snapshot Admin Deployment / build-and-deploy (push) Failing after 34s
Quant Engine CI/CD Pipeline / validate-core (push) Failing after 2m18s
Quant Engine CI/CD Pipeline / validate-ui-and-storage (push) Has been skipped
2026-06-29 10:55:40 +09:00
kjh2064 762335286c chore(ci): Update Gitea Actions CI/CD pipeline for v9 production deployment
- Configure internal IP deployment: 172.17.0.1 (hz-prod-01)
- Set deployment path to /home/kjh2064/quantengine_active
- Use quantengine systemd service for app management
- Implement service lifecycle (stop → backup → extract → start)
- Add health checks against localhost:5000 (quantengine)
- Update Nginx reverse proxy verification (already configured)
- Add comprehensive deployment report and Slack notifications
- Include post-deployment performance metrics collection

CI/CD Flow:
1. Build & Test: Release build, validation, .tar.gz creation
2. Deploy: Service stop, backup, file transfer, service start
3. Health Check: localhost:5000 verification via Nginx proxy
4. Post-Deploy: Performance metrics and deployment checklist

Environment: hz-prod-01 (Public: 178.104.200.7 / Internal: 172.17.0.1)

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-06-25 18:23:49 +09:00
kjh2064 284f2ad973 fix(cicd): Correct network configuration - remote server with internal IP
네트워크 구조 정정:

원격지 구성:
  - 공인 IP: 178.104.200.7 (인터넷 접속)
  - 내부 IP: 192.168.123.100 (Gitea & 운영서버)
  - Gitea와 운영서버가 같은 원격 서버에 위치

CI/CD 배포:
  DEPLOY_HOST: 192.168.123.100 (내부 IP 사용)
  → SSH 연결 (빠르고 안전)
  → /var/www/quant/publish 배포

외부 사용자:
  공인 IP (178.104.200.7)
  → nginx 포트포워딩
  → 내부 192.168.123.100
  → http://178.104.200.7/quant/

이점:
  -  내부 네트워크로 배포 (빠름)
  -  공인 IP는 외부 사용자만 사용
  -  SSH 보안 강화

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-06-25 18:12:29 +09:00
kjh2064 b72a2ea2cd fix(cicd): Use internal IP for CI/CD deployment
네트워크 구조 수정:

기존:
  - DEPLOY_HOST: 178.104.200.7 (공인 IP)

수정:
  - DEPLOY_HOST: 192.168.123.100 (내부 IP)
  - Gitea와 운영서버가 같은 내부 네트워크에 있으므로 내부 IP 사용
  - 외부 사용자는 공인 IP 178.104.200.7로 접속 (nginx 포트포워딩)

이점:
  -  네트워크 보안 향상 (SSH는 내부 통신)
  -  불필요한 외부 네트워크 통신 제거
  -  CI/CD 배포 속도 개선

CI/CD 파이프라인:
  Gitea (192.168.123.100)
  → SSH (내부 네트워크, 안전)
  → 운영서버 (192.168.123.100)
  → 포트포워딩 (178.104.200.7)

외부 사용자:
  인터넷 → 178.104.200.7 → nginx 포트포워딩 → 192.168.123.100

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-06-25 18:11:36 +09:00
kjh2064 55a5baa439 feat(cicd): Add Gitea Actions deployment pipeline
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (push) Failing after 3s
CI/CD 파이프라인 구축:

.gitea/workflows/deploy-prod.yml:
  - Build Release 자동화 (dotnet publish)
  - CI 게이트: 핵심 검증 통과 후만 배포
  - SSH 기반 자동 배포 (터미널 상호작용 불필요)
  - 자동 백업: /var/www/quant_backup/ (최신 5개 유지)
  - 서비스 재시작: nginx systemctl restart
  - 자동 헬스 체크 (HTTP 200 OK)
  - 배포 리포트 생성 (.txt artifact)
  - Post-deployment 체크리스트

CI/CD_PIPELINE.md:
  - 파이프라인 구조 다이어그램
  - 단계별 상세 설명
  - Secrets & Environment 설정
  - SSH 키 설정 (최초 1회)
  - 배포 전/중/후 체크리스트
  - 실패 시 대응 방법
  - 빠른 롤백 명령어

배포 프로세스:
  - Trigger: git push origin feature:main
  - 자동 실행: Gitea Actions
  - 소요 시간: ~10분 (CI 5분 + CD 5분)
  - 산출물: 24MB Release package
  - 배포 대상: 178.104.200.7 /var/www/quant

보안:
  - SSH 개인 키 (secrets.SSH_PRIVATE_KEY)
  - Slack 알림 (선택사항)
  - 자동 백업 & 롤백 준비

모니터링:
  - Gitea Actions 로그
  - nginx 에러/접근 로그
  - 배포 리포트 & 체크리스트

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-06-25 18:10:10 +09:00