diff --git a/.github/workflows/server-cd.yml b/.github/workflows/server-cd.yml index e807f4728..eb24ca0ce 100644 --- a/.github/workflows/server-cd.yml +++ b/.github/workflows/server-cd.yml @@ -59,12 +59,13 @@ jobs: password: ${{ secrets.EC2_PRIVATE_KEY }} port: 22 script: | - docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} - docker pull ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPO }}:issue-tracker-dev + echo hello + # docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} + # docker pull ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPO }}:issue-tracker-dev # 기존에 실행 중인 컨테이너 중지 및 삭제 - if [ $(docker ps -q -f name=spring-server) ]; then - docker stop spring-server - docker rm spring-server - fi + # if [ $(docker ps -q -f name=spring-server) ]; then + # docker stop spring-server + # docker rm spring-server + # fi # 새로운 컨테이너 실행 - docker run -d --name spring-server ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPO }}:issue-tracker-dev + # docker run -d --name spring-server ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPO }}:issue-tracker-dev