Skip to content

Commit

Permalink
edit : 파일위치 수정 (#22)
Browse files Browse the repository at this point in the history
* edit : Deploy 과정 수정

* edit : Deploy 과정 수정
- SCP테스트
   - Github Action에서 Proxy로 전송이 되는지 테스트

* edit : Deploy 과정 수정
- 파일 Proxy원복

* edit : Build로 생성된 App.jar를 Root로 이동
  • Loading branch information
bongsh0112 authored Sep 16, 2023
1 parent 339daec commit 821529a
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 821529a

Please sign in to comment.