Skip to content

Commit

Permalink
프로덕션 서비스 무중단 배포 (#640)
Browse files Browse the repository at this point in the history
* refactor: cicd 스크립트 수정

* refactor: cicd 스크립트 수정
  • Loading branch information
shb03323 authored Oct 10, 2023
1 parent fa176d0 commit 4229e3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/deploy-be-ci-cd-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,9 @@ jobs:
- name: Pull Latest Docker Image
run: |
sudo docker login --username ${{ secrets.DOCKERHUB_DEPLOY_USERNAME }} --password ${{ secrets.DOCKERHUB_DEPLOY_TOKEN }}
if sudo docker inspect spring-baton &>/dev/null; then
sudo docker stop spring-baton
sudo docker rm -f spring-baton
sudo docker image prune -af
fi
sudo docker pull 2023batondeploy/2023-baton-deploy:latest
- name: Docker Compose
run: |
sudo docker run --name spring-baton -v /home/ubuntu/logs:/app/logs -p 8080:8080 -e TZ=Asia/Seoul 2023batondeploy/2023-baton-deploy:latest 1>> build.log 2>> error.log &
/home/ubuntu/zero-downtime-deploy.sh
sudo docker image prune -af
2 changes: 1 addition & 1 deletion backend/baton/secret

0 comments on commit 4229e3b

Please sign in to comment.