From aee575221e7e95a9396b065bbec413bc134a78b3 Mon Sep 17 00:00:00 2001 From: "Kyungmi, Park" Date: Sun, 14 Jul 2024 18:28:40 +0900 Subject: [PATCH] =?UTF-8?q?[chore]=20sudo=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .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 f79c02c..8c5341e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -42,11 +42,11 @@ jobs: key: ${{ secrets.SERVER_KEY }} port: ${{ secrets.SERVER_PORT }} script: | - docker login --username ${{ secrets.DOCKER_ID }} --password ${{ secrets.DOCKER_PASSWORD }} - docker pull traveline/traveline-docker - docker stop traveline-container || true - docker rm traveline-container || true - docker run -e DB_HOST=${{ secrets.DB_HOST }} \ + sudo docker login --username ${{ secrets.DOCKER_ID }} --password ${{ secrets.DOCKER_PASSWORD }} + sudo docker pull traveline/traveline-docker + sudo docker stop traveline-container || true + sudo docker rm traveline-container || true + sudo docker run -e DB_HOST=${{ secrets.DB_HOST }} \ -e DB_PORT=${{ secrets.DB_PORT }} \ -e DB_USER=${{ secrets.DB_USER }} \ -e DB_PASSWORD=${{ secrets.DB_PASSWORD }} \