From 8a8c80594f7f9aa24f338453ca26aadcafb30657 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=ED=98=B8=EB=B9=88?= Date: Mon, 27 May 2024 14:16:53 +0900 Subject: [PATCH] Update server-cd.yml --- .github/workflows/server-cd.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/server-cd.yml b/.github/workflows/server-cd.yml index 746a851a0..c814ccf0b 100644 --- a/.github/workflows/server-cd.yml +++ b/.github/workflows/server-cd.yml @@ -59,6 +59,8 @@ jobs: username: ${{ secrets.EC2_USERNAME }} key: ${{ secrets.EC2_PRIVATE_KEY }} script: | + sudo systemctl start redis-server + sudo systemctl enable redis-server sudo docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} sudo docker pull ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPO }}:latest # 기존에 실행 중인 컨테이너 중지 및 삭제