Skip to content

Commit

Permalink
Refactor: Update file transfer method in GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ybmin committed Oct 4, 2024
1 parent 9f85f35 commit 6ca95e0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,13 @@ jobs:

# 5. Oracle Cloud A1 서버로 파일 전송
- name: Copy files via SSH
uses: appleboy/ssh-action@master
uses: appleboy/scp-action@v0.1.5
with:
host: ${{ secrets.ORACLE_HOST }}
username: ${{ secrets.ORACLE_USERNAME }}
key: ${{ secrets.ORACLE_SSH_KEY }}
script: |
rm -rf /home/ubuntu/tkFront/build
mkdir -p /home/ubuntu/tkFront/build
scp -r -o StrictHostKeyChecking=no -i ${{ secrets.ORACLE_SSH_KEY }} build/* ${{ secrets.ORACLE_USERNAME }}@${{ secrets.ORACLE_HOST }}:/home/ubuntu/tkFront/
source: "build/"
target: "/home/ubuntu/tkFront/"

# 6. Oracle 서버에서 앱 실행 (서버에서 npm install을 이미 마쳤다고 가정)
- name: Run app on Oracle server
Expand Down

0 comments on commit 6ca95e0

Please sign in to comment.