From 05cc67dd4a2d2ac250774ad6c4ee5bf2140dda0f Mon Sep 17 00:00:00 2001 From: Jin Geonwoo Date: Thu, 27 Jun 2024 14:55:25 +0900 Subject: [PATCH] =?UTF-8?q?[settings]=20=EB=B0=B0=ED=8F=AC=20=EA=B4=80?= =?UTF-8?q?=EB=A0=A8=20=ED=8C=8C=EC=9D=BC=20=EC=88=98=EC=A0=95=20(#11)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/DOCKER-CI-CD.yml | 1 + scripts/deploy.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/DOCKER-CI-CD.yml b/.github/workflows/DOCKER-CI-CD.yml index 20466e61..5a064538 100644 --- a/.github/workflows/DOCKER-CI-CD.yml +++ b/.github/workflows/DOCKER-CI-CD.yml @@ -82,6 +82,7 @@ jobs: username: ${{ secrets.SERVER_USER }} key: ${{ secrets.SERVER_KEY }} script: | + sudo docker login -u ${{ secrets.DOCKER_LOGIN_USERNAME }} -p ${{ secrets.DOCKER_LOGIN_ACCESSTOKEN }} sudo docker pull ${{ secrets.DOCKER_LOGIN_USERNAME }}/recordy sudo chmod 777 /home/ubuntu/scripts/deploy.sh /home/ubuntu/scripts/deploy.sh diff --git a/scripts/deploy.sh b/scripts/deploy.sh index a5415932..6fc7b0e1 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -6,9 +6,9 @@ IS_REDIS_EXIST=$(docker ps | grep redis) if [ -z $IS_REDIS_EXIST ];then echo "### REDIS ###" echo ">>> pull redis image" - docker-compose pull redis +p docker compose pull redis echo ">>> up redis container" - docker-compose up -d redis + docker compose up -d redis fi # green up