Skip to content

Chore: PB-99 백엔드 EC2 CD 초안 추가 - #209

Merged
geonusp merged 5 commits into
mainfrom
chore/PB-99-backend-ec2-cd
Apr 7, 2026
Merged

geonusp merged 5 commits into
mainfrom
chore/PB-99-backend-ec2-cd

Conversation

@PHJ2000

@PHJ2000 PHJ2000 commented Mar 31, 2026 •

Copy link
Copy Markdown
Collaborator

🧰 Chore PR

🔗 Jira Issue (필수)

PR 제목: Chore: PB-99 백엔드 EC2 CD 초안 추가
브랜치: chore/PB-99-backend-ec2-cd


🔒 Close Issue (필수)


🧩 한눈에 요약 (필수)

무엇을 변경했나? (인프라/빌드/CI/의존성 등)

  • 인프라
  • 설정파일
  • 빌드 파일
  • CI
  • 의존성
  • 런타임/비즈니스 로직 리팩터링 없음 (있으면 Refactor PR 템플릿 사용)

왜 필요한가? (안정성/속도/보안/개발경험)

  • 백엔드만 대상으로 하는 EC2 CD 구조를 먼저 코드로 명시해 리뷰 가능한 상태로 만들기 위해
  • main merge 이후 push to main 기준 자동 배포 흐름을 준비하기 위해
  • GHCR 이미지 기반 배포, EC2 compose 실행, 운영 env 분리를 한 흐름으로 정리하기 위해

범위(스코프)

  • Included:
    • .github/workflows/backend-cd.yml
    • deploy/docker-compose.ec2.yml.example
    • deploy/backend-ec2.env.example
    • docs/guides/backend-ec2-cd-guide.md
  • Not included:
    • GitHub Secrets 실제 등록
    • EC2 운영 서버의 compose/.env 실제 배치
    • 첫 자동 배포 실행 결과 검증
    • 프론트엔드 배포 자동화

🧪 테스트 / 검증 (필수)

로컬

  • Command:
git diff --staged
  • Result:
    • 백엔드 CD 관련 4개 파일만 스테이징 및 커밋 범위로 분리
    • workflow/compose/env/template 문법 및 연결 구조 수동 점검

CI

  • 링크/결과: Draft PR 생성 후 확인 예정

Smoke / 수동 검증 (해당 시)

  • 시나리오:
    • workflow trigger, GHCR push, EC2 compose 재기동 흐름 리뷰
    • paths 조건이 프론트 변경을 제외하는지 확인
  • 결과:
    • 로컬 설계 검토 완료
    • GitHub/AWS 환경 적용 전이라 실제 배포 smoke는 미실행

테스트 공백(있다면 이유 필수)

  • GitHub Secrets, GHCR 권한, EC2 deploy path/compose/env 파일이 아직 실제 환경에 연결되지 않아 end-to-end 자동 배포 검증은 미실행

🧭 영향 범위 (필수)

  • 설정/환경변수 변경 없음
  • 설정/환경변수 변경 있음 (항목: EC2_HOST, EC2_PORT, EC2_USER, EC2_SSH_KEY, GHCR_USERNAME, GHCR_READ_TOKEN, EC2_DEPLOY_PATH, EC2_COMPOSE_FILE, EC2_ENV_FILE)
  • CI/빌드 파이프라인 영향 없음
  • CI/빌드 파이프라인 영향 있음 (요약: push to main 기준 백엔드 CD workflow 초안 추가)
  • 의존성(dependency) 변경 없음
  • 의존성(dependency) 변경 있음 (패키지/버전/주요 변경점: )

⚠️ 리스크 & 롤백 (필수)

리스크

  • Secrets 또는 EC2 파일 경로가 실제 환경과 다르면 첫 배포가 실패할 수 있음
  • 현재 workflow는 main 반영 시 동작하므로, merge 전 GitHub/AWS 준비가 필요함
  • CI 성공 이후에만 배포하도록 더 엄격히 연결하는 후속 보완 여지가 있음

롤백

  • 단순 revert로 가능
  • 버전 pin/되돌리기 필요 (대상: , 방법: )
  • 배포 롤백(이전 태그/이미지) 가능

💬 리뷰 가이드 (필수)

  • 꼭 봐야 하는 파일/설정:
    • .github/workflows/backend-cd.yml
    • deploy/docker-compose.ec2.yml.example
    • deploy/backend-ec2.env.example
    • docs/guides/backend-ec2-cd-guide.md
  • 트레이드오프/대안:
    • 현재는 PR merge 후 push to main 기반 CD로 단순화
    • 필요 시 후속 작업에서 CI 성공 이후에만 CD가 이어지도록 강화 가능
  • 성능/보안/호환성 영향:
    • 비밀값은 레포에 두지 않고 GitHub Secrets + EC2 env 파일로 분리
    • 런타임 코드 변경은 없고 배포/운영 경로만 추가

@coderabbitai

coderabbitai Bot commented Mar 31, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: dbb93319-8f3d-4648-9d7e-0659969843b3

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/PB-99-backend-ec2-cd

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@PHJ2000
PHJ2000 marked this pull request as ready for review April 2, 2026 07:42
@PHJ2000 PHJ2000 self-assigned this Apr 2, 2026
@PHJ2000
PHJ2000 requested review from geonusp April 2, 2026 07:49
@geonusp geonusp changed the title PB-99 Chore: 백엔드 EC2 CD 초안 추가 Chore: PB-99 백엔드 EC2 CD 초안 추가 Apr 2, 2026
Comment thread .github/workflows/backend-cd.yml Resolved
Comment thread .github/workflows/backend-cd.yml Resolved
Comment thread .github/workflows/backend-cd.yml Resolved
Comment thread .github/workflows/backend-cd.yml Resolved
@geonusp
geonusp merged commit 8b20c8e into main Apr 7, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[chore] PB-99 GitHub Actions 기반 백엔드 EC2 CD 파이프라인 구축

2 participants