Skip to content

Commit

Permalink
Update server-cd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zzawang authored May 28, 2024
1 parent bde54ae commit 5b5d4af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/server-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ jobs:
cd /home/ubuntu
script: |
sudo docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
sudo docker pull ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPO }}:latest
# 기존에 실행 중인 컨테이너 중지 및 삭제
if [ $(sudo docker ps -q -f name=spring-server) ]; then
sudo docker stop spring-server
Expand Down

0 comments on commit 5b5d4af

Please sign in to comment.