From 17393303a8c4fd8f247fff350150b97d18d88629 Mon Sep 17 00:00:00 2001 From: yeonjy73 Date: Wed, 9 Jul 2025 16:18:20 +0900 Subject: [PATCH] fix: deploy.yml --- .github/workflows/deploy.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 234f64a..0e73c74 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -46,8 +46,8 @@ jobs: username: ${{ env.AWS_USER }} key: ${{ env.AWS_SSH_KEY }} script: | - cd git-action-test/ - sed -i 's|image:.*|image: '"${{ env.DOCKER_REPO }}:latest"'|' docker-compose.yaml - docker-compose down - docker-compose pull - docker-compose up -d \ No newline at end of file + docker stop Block-Guard-AI || true + docker rm Block-Guard-AI || true + + docker pull "${{ env.DOCKER_REPO }}:latest" + docker run -d --name "Block-Guard-AI" -p 8000:8000 ${{ env.DOCKER_REPO }}:latest \ No newline at end of file