Skip to content

Commit

Permalink
Test: 블루-그린 무중단 배포 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
tioon committed Jun 30, 2024
1 parent 3e4164f commit 32afce7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ jobs:
echo "New port: $NEW_PORT"
# 새 Docker 이미지 가져오기 및 새로운 컨테이너 실행
sudo docker pull ${{secrets.DOCKERHUB_USERNAME}}/qtudy-server
sudo docker run -d -p $NEW_PORT:8080 --network="host" --name $NEW_CONTAINER ${{secrets.DOCKERHUB_USERNAME}}/qtudy-server
sudo docker pull ${{secrets.DOCKERHUB_USERNAME}}/qtudy-server:prod
sudo docker run -d -p $NEW_PORT:8080 --name $NEW_CONTAINER ${{secrets.DOCKERHUB_USERNAME}}/qtudy-server:prod
# Nginx 설정 파일 교체 및 재시작
sudo ln -sf $NEW_CONF /etc/nginx/active.conf
Expand Down

0 comments on commit 32afce7

Please sign in to comment.