diff --git a/.github/workflows/backend-cd.yml b/.github/workflows/backend-cd.yml index d9a2f3d..7d9f669 100644 --- a/.github/workflows/backend-cd.yml +++ b/.github/workflows/backend-cd.yml @@ -15,7 +15,6 @@ jobs: username: ubuntu key: ${{ secrets.SSH_PRIVATE_KEY }} script: | - sudo docker stop $(docker ps -a -q) - sudo docker rm $(docker ps -a -q) - sudo docker pull jeongwoon1849/bookitty - sudo docker run -d -p 8080:8080 --name new jeongwoon1849/bookitty + sudo docker-compose down + sudo docker pull ${ {DOCKER_REPOSITORY }} + sudo docker run -d -p 8080:8080 --name new ${{ DOCKER_REPOSITORY }}