From 3b80a322d1ffc9af1480b7260c31aae0eb2299b5 Mon Sep 17 00:00:00 2001 From: dustbox Date: Fri, 20 Sep 2024 03:05:57 +0900 Subject: [PATCH] =?UTF-8?q?infra:=20cicd=20=EC=8A=A4=ED=81=AC=EB=A6=BD?= =?UTF-8?q?=ED=8A=B8=20redis=20=EA=B5=AC=EB=8F=99=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/gradle.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index a00dd846..19355466 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -95,6 +95,16 @@ jobs: source: "*.jar" target: "/home/ubuntu/app" + # Redis Server 구동 + - name: Start redis-server + uses: appleboy/ssh-action@master + with: + key: ${{ secrets.EC2_KEY_PROD }} + host: ${{ secrets.EC2_HOST_PROD }} + username: ${{ secrets.EC2_USER_PROD }} + script: | + sudo systemctl start redis-server + # EC2에 SSH로 배포 커맨드를 입력하는 step - name: Deploy SSH uses: appleboy/ssh-action@master