Skip to content

Comments

fix(#7): CD에서 image pull 방식으로 수정#18

Merged
ParkJiYeoung8297 merged 8 commits intodevfrom
fix(#7)ci-cd-fix
Jan 19, 2026
Merged

fix(#7): CD에서 image pull 방식으로 수정#18
ParkJiYeoung8297 merged 8 commits intodevfrom
fix(#7)ci-cd-fix

Conversation

@ParkJiYeoung8297
Copy link
Contributor

related_to : #7

📝 작업 내용

CD에서 image pull 방식으로 수정

✅ 변경 사항

  • docker-compose.yml에서 빌드 과정 삭제 및 image pull 방식으로 수정
  • 포트 번호 변경 6000 → 8080

📷 스크린샷 (선택)

image

💬 리뷰어에게

  1. 직접 수동으로 서버에 배포했을 때, 6000 포트는 접근이 막혀있어서 8080으로 변경했습니다.
  2. CD 워크플로우에 git pull 과정을 넣으면 deploy 키를 발급하는 과정이 필요할 것 같아서, 그냥 .env와 docker-composer.yaml을 서버에서 수동관리하는 방식으로 하려고 하는데 이 방식으로 진행해도 될까요?

@ParkJiYeoung8297 ParkJiYeoung8297 self-assigned this Jan 17, 2026
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @ParkJiYeoung8297, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 PR은 지속적인 배포(CD) 환경을 개선하고, 서버 배포 시 발생했던 포트 접근 문제를 해결하며, 더 이상 필요 없는 임시 채팅 기능 관련 코드를 정리하는 것을 목표로 합니다. docker-compose.yaml 설정을 변경하여 이미지 빌드 대신 풀 방식을 사용하고, 애플리케이션 포트를 조정하며, 불필요한 채팅 모듈 코드를 제거하여 코드베이스를 간소화했습니다.

Highlights

  • CD 파이프라인 개선: docker-compose.yaml 파일에서 로컬 빌드 과정을 제거하고, 미리 빌드된 Docker 이미지를 Docker Hub에서 직접 풀(pull)하여 사용하도록 변경함으로써 지속적인 배포(CD)의 효율성을 높였습니다.
  • 애플리케이션 포트 변경: 서버 환경에서 6000번 포트 접근이 제한되는 문제를 해결하기 위해, 애플리케이션의 외부 노출 포트를 6000번에서 8080번으로 변경했습니다.
  • 임시 채팅 기능 코드 제거: 이전에 임시로 추가되었던 채팅 기능 관련 컨트롤러, 설정, 데이터 전송 객체(DTO), 스웨거 정의 및 관련 테스트 코드가 모두 삭제되어 코드베이스가 간소화되었습니다.
Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/cd-prod.yml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

안녕하세요. CD 파이프라인을 이미지 pull 방식으로 변경하는 작업을 잘 확인했습니다. docker-compose.yaml 파일의 수정은 PR의 설명과 일치하며, restart: always 정책 추가와 포트 변경 모두 타당해 보입니다. 리뷰어에게 남겨주신 질문에 대해 답변 드리자면, .envdocker-compose.yaml 파일을 서버에서 수동으로 관리하는 방식은 초기에는 간단할 수 있지만, 장기적으로는 저장소의 설정과 서버의 설정이 달라질 위험이 있고, 변경 사항을 수동으로 적용해야 하는 번거로움이 있습니다. GitHub Actions의 secrets 등을 활용해 배포 과정을 자동화하고 일관성을 유지하는 방식을 고려해보시는 것을 추천합니다. 추가로 docker-compose.yaml 파일에 대한 작은 개선 제안을 리뷰 댓글로 남겼으니 확인 부탁드립니다.

build:
context: .
dockerfile: Docker/Dockerfile
image: ${DOCKERHUB_USERNAME}/realmatch-backend:prod
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Docker 이미지 태그로 prod를 사용하고 계십니다. 이 방식은 새로운 이미지를 배포할 때마다 같은 태그를 덮어쓰게 되어, 특정 버전으로 롤백하기 어렵게 만들 수 있습니다.

Git commit hash나 시맨틱 버전(예: v1.2.3)과 같이 각 빌드를 고유하게 식별할 수 있는 태그를 사용하는 것을 권장합니다. 이렇게 하면 배포된 버전을 명확하게 추적하고, 문제 발생 시 안정적인 이전 버전으로 쉽게 롤백할 수 있습니다.

예시:

image: ${DOCKERHUB_USERNAME}/realmatch-backend:${IMAGE_TAG:-prod}

CI/CD 파이프라인에서 IMAGE_TAG 환경 변수를 설정하여 동적으로 태그를 주입할 수 있습니다.

    image: ${DOCKERHUB_USERNAME}/realmatch-backend:${IMAGE_TAG:-prod}

Copy link
Member

@1000hyehyang 1000hyehyang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

좋습니다~

@ParkJiYeoung8297 ParkJiYeoung8297 merged commit 69c70ba into dev Jan 19, 2026
1 check passed
@ParkJiYeoung8297 ParkJiYeoung8297 deleted the fix(#7)ci-cd-fix branch January 19, 2026 06:05
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.

2 participants