From 821529aa0ae9cf05f70a46af74ae3eb72ad50aa5 Mon Sep 17 00:00:00 2001 From: SeHwan Bong Date: Sat, 16 Sep 2023 17:26:07 +0900 Subject: [PATCH] =?UTF-8?q?edit=20:=20=ED=8C=8C=EC=9D=BC=EC=9C=84=EC=B9=98?= =?UTF-8?q?=20=EC=88=98=EC=A0=95=20(#22)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * edit : Deploy 과정 수정 * edit : Deploy 과정 수정 - SCP테스트 - Github Action에서 Proxy로 전송이 되는지 테스트 * edit : Deploy 과정 수정 - 파일 Proxy원복 * edit : Build로 생성된 App.jar를 Root로 이동 --- .github/workflows/deploy.yml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f49df9f8..b4a578e5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -31,25 +31,24 @@ jobs: - name: Build with Gradle run: ./gradlew build + - name: Move App.jar + run : mv ./Api/build/libs/app.jar ./ + # Proxy Server Connect with SSH # scp로 proxy server에 build된 Jar 파일을 보낸다 # jar 파일을 실행한다. 이 때 storage에 대한 VM Option을 추가하여 실행한다. - name: Transfer BuildFile Git Actions To ApplicationServer uses: appleboy/scp-action@master with: -# proxy_host: ${{ secrets.NCP_PROXY_HOST }} -# proxy_username: root -# proxy_key: ${{ secrets.NCP_PEM }} -# proxy_port: 2222 -# host: ${{ secrets.NCP_APP_HOST }} -# username: root -# key: ${{ secrets.NCP_PEM }} -# port: 22 - host: ${{ secrets.NCP_PROXY_HOST }} + proxy_host: ${{ secrets.NCP_PROXY_HOST }} + proxy_username: root + proxy_key: ${{ secrets.NCP_PEM }} + proxy_port: 2222 + host: ${{ secrets.NCP_APP_HOST }} username: root key: ${{ secrets.NCP_PEM }} - port: 2222 - source: ./Api/build/libs/app.jar + port: 22 + source: app.jar target: /var/app - name: Run Application