From e8da0d904ab3266de66aecc08f351bf0a68b0be7 Mon Sep 17 00:00:00 2001 From: sungjiwoon Date: Thu, 11 Jan 2024 21:39:25 +0900 Subject: [PATCH] docker cicd --- .github/workflows/deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9e03f65..d4725db 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -49,6 +49,6 @@ jobs: username: ${{ secrets.USER_NAME }} key: ${{ secrets.PRIVATE_KEY }} script: | - docker pull ${{ secrets.DOCKER_IMAGE_NAME }} - docker stop chat-server - docker run -d --rm --name chat-server -p 8080:8080 ${{ secrets.DOCKER_IMAGE_NAME }} + sudo docker pull ${{ secrets.DOCKER_IMAGE_NAME }} + sudo docker stop chat-server + sudo docker run -d --rm --name chat-server -p 8080:8080 ${{ secrets.DOCKER_IMAGE_NAME }}