Skip to content

Commit

Permalink
[BE] 프로덕션 서버 무중단 배포 환경 구축 (#413)
Browse files Browse the repository at this point in the history
* chore: 서브모듈 업데이트 반영

- 무중단 배포 스크립트 추가

* refactor(backend-prod-cd): 배포과정에서 무중단 배포 스크립트를 실행하도록 변경
  • Loading branch information
hw0603 authored Oct 17, 2024
1 parent b86ec54 commit 3120495
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/backend-prod-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ jobs:
- name: docker pull
run: docker pull ${{ secrets.DOCKERHUB_USERNAME }}/momo-api-prod

# 2. 실행 컨테이너 중 app 서비스만 재시작
- name: Restart app service
run: docker compose -f $HOME/security/docker-compose-prod.yml restart app --no-deps
# 2. 블루그린 배포 스크립트 실행
- name: Launch Blue-Green Deployment
run: chmod +x $HOME/security/deploy.sh; $HOME/security/deploy.sh

# 3. 미사용 이미지를 정리
# 3. 미사용 이미지 정리
- name: delete old docker image
run: docker system prune -f
2 changes: 1 addition & 1 deletion backend/src/main/resources/security

0 comments on commit 3120495

Please sign in to comment.