From 40a7fd08fcf10c906b13c5254592ee75f264028a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EC=8A=B9=EA=B7=9C?= <156777781+wwingyou@users.noreply.github.com> Date: Mon, 25 Mar 2024 17:09:37 +0900 Subject: [PATCH] Update auto-deployment.yml --- .github/workflows/auto-deployment.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/auto-deployment.yml b/.github/workflows/auto-deployment.yml index 4b40bcb..8a05114 100644 --- a/.github/workflows/auto-deployment.yml +++ b/.github/workflows/auto-deployment.yml @@ -55,6 +55,17 @@ jobs: run: | scp -i private_key.pem -r deploy "${username}@${host}:~" working-directory: JWT + + - name: Remote SSH Commands + uses: fifsky/ssh-action@v0.0.6 + with: + command: | + echo $JAVA_HOME + echo $PATH + java --version + host: ${{ secrets.EC2_HOST }} + user: ${{ secrets.EC2_USERNAME }} + key: ${{ secrets.EC2_PRIVATE_KEY }} - name: Kill current running Spring process uses: appleboy/ssh-action@v1.0.3