Skip to content

chore: Jenkins에서 이루어지던 CICD 를 github actions 로 이전#472

Open
penrose15 wants to merge 3 commits intodevelopfrom
chore/471-github-actions
Open

chore: Jenkins에서 이루어지던 CICD 를 github actions 로 이전#472
penrose15 wants to merge 3 commits intodevelopfrom
chore/471-github-actions

Conversation

@penrose15
Copy link
Copy Markdown
Collaborator

@penrose15 penrose15 commented Jul 8, 2025

🌱 관련 이슈

📌 작업 내용 및 특이사항

  • jenkins에서 이뤄지던 CICD를 github actions 로 이전하기 위해 스크립트를 작성했습니다.
  • 해당 스크립트는 main 브랜치로 푸시 이벤트가 발생할 때 작동합니다.
  • 대략적인 플로우는 아래와 같습니다.
    • CI
      • 기존의 Dockerfile-prod 로 도커 컨테이너 빌드
      • 빌드 된 이미지를 Dockerhub로 push
    • CD
      • github actions에서 원격 서버(ec2)로 ssh 접근 하기 위해 AWS Security Group에 github actions 의 IP 를 추가 (22번 포트)
      • github actions에서 원격 서버로 scp명령어로 deploy.sh 파일 전송
      • github actions에서 원격 서버로 ssh명령어로 deploy.sh 실행

📝 참고사항

  • ec2 구축이 완료되는대로 테스트를 진행해볼 예정입니다. (현재 개인 AWS 계정에서 테스트를 한 결과 ec2에서 dockerhub 이미지를 받아오는 것까지 성공)

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jul 8, 2025

Test Results

109 tests   109 ✅  2s ⏱️
 26 suites    0 💤
 26 files      0 ❌

Results for commit 8abbf79.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

⚙️ Jenkins -> github actions로 CICD 변경

1 participant