Skip to content

feat: add CI/CD workflow for queue-service - #17

Merged
LimJinKeon merged 2 commits into
devfrom
feat/add-queue-service-cicd
May 19, 2026
Merged

feat: add CI/CD workflow for queue-service#17
LimJinKeon merged 2 commits into
devfrom
feat/add-queue-service-cicd

Conversation

@kjp0411

@kjp0411 kjp0411 commented May 18, 2026

Copy link
Copy Markdown
Contributor

📎 관련 이슈

📌 작업 내용

  • queue-service에 GitHub Actions 기반 CI/CD workflow를 도입했습니다.
  • PR/push 시 Gradle test를 수행하는 CI workflow를 정리했습니다.
  • main 브랜치 병합 시 Docker 이미지를 build/push하고, GHCR에 main-latest 태그로 배포하도록 CD workflow를 추가했습니다.
  • GHCR 이미지 push 이후 EC2에 SSH로 접속하여 queue-service 컨테이너만 자동 재배포하도록 구성했습니다.

✨ 변경 사항

  • .github/workflows/queue-service-ci.yml 수정
  • .github/workflows/queue-service-deploy.yml 추가
  • GHCR 이미지 build/push 설정 추가
    • ghcr.io/3s-ticketing/queue-service:main-latest
    • ghcr.io/3s-ticketing/queue-service:{commit-sha}
  • EC2 배포 단계 추가
    • docker compose -f docker-compose.app.yml pull queue-service
    • docker compose -f docker-compose.app.yml up -d --no-deps --force-recreate queue-service
  • 배포 시 EC2 내부에서 GHCR 인증을 수행하도록 docker login ghcr.io 단계 추가
  • 배포 후 ticketing-queue-service 컨테이너 상태 확인 명령 추가
  • 테스트 실패 시 로그 출력 및 테스트 리포트 artifact 업로드 설정 유지

📝 리뷰 포인트 (선택)

  • workflow 내 서비스명, 이미지명, 컨테이너명이 queue-service 기준으로 올바르게 설정되었는지 확인 부탁드립니다.
    • image: ghcr.io/3s-ticketing/queue-service:main-latest
    • compose service: queue-service
    • container: ticketing-queue-service
  • 전체 서비스를 재기동하지 않고 queue-service만 재배포하도록 --no-deps --force-recreate queue-service 옵션을 사용했습니다.
  • GitHub Secrets 설정이 정상 적용되는지 확인이 필요합니다.
    • GPR_USER
    • GPR_TOKEN
    • EC2_HOST
    • EC2_USER
    • EC2_SSH_KEY
    • QUEUE_TOKEN_SECRET

🧠 기타 참고 사항

  • user-service에서 동일한 방식의 CI/CD 자동 배포 흐름을 먼저 검증했습니다.
  • club-service, match-service, payment-service에도 동일한 방식의 CI/CD workflow를 적용 중입니다.
  • ticketing-system/docker-compose.app.yml에서 queue-service가 image: ghcr.io/3s-ticketing/queue-service:main-latest를 바라보도록 변경되어 있어야 docker compose pull queue-service가 정상 동작합니다.
  • main 병합 후 Actions 탭에서 CD workflow 성공 여부와 EC2 컨테이너 재기동 여부를 확인할 예정입니다.

@coderabbitai

coderabbitai Bot commented May 18, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@kjp0411 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 3 minutes and 8 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 9e4f2a66-5138-4c95-8462-060aa494bb63

📥 Commits

Reviewing files that changed from the base of the PR and between 28aae14 and 1a0c111.

📒 Files selected for processing (2)
  • .github/workflows/queue-service-ci.yml
  • .github/workflows/queue-service-deploy.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/add-queue-service-cicd

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.

@LimJinKeon
LimJinKeon merged commit 52548d8 into dev May 19, 2026
3 checks passed
@LimJinKeon
LimJinKeon deleted the feat/add-queue-service-cicd branch May 19, 2026 01:08
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.

[feature] queue-service CI/CD workflow 도입

2 participants