Skip to content

Commit

Permalink
refactor(backend-prod-cd): 배포과정에서 무중단 배포 스크립트를 실행하도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
hw0603 committed Oct 16, 2024
1 parent 91a20cd commit cc92253
Showing 1 changed file with 4 additions and 4 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

0 comments on commit cc92253

Please sign in to comment.