From 38d4330ecbfe5ff13174f23b614fda064053833d Mon Sep 17 00:00:00 2001 From: Hyun <82355395+donghyuun@users.noreply.github.com> Date: Fri, 13 Sep 2024 23:38:16 +0900 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4f97d39..063c5b0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -77,7 +77,7 @@ jobs: script: | docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} docker pull ${{ secrets.DOCKER_USERNAME }}/apap-backend:latest - docker stop $(docker ps -a -q) + docker stop apap-backend docker run -d --name apap-backend --network apap-backend --log-driver=syslog -p 8080:8080 ${{ secrets.DOCKER_USERNAME }}/apap-backend:latest docker rm $(docker ps --filter 'status=exited' -a -q) docker image prune -a -f