fix: scp-action Docker 방식 → 직접 scp 명령으로 변경

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
이희원 2026-06-20 04:14:37 +09:00
parent 813c2c4865
commit 64d24b7087
1 changed files with 6 additions and 9 deletions

View File

@ -25,12 +25,9 @@ jobs:
run: npm run build run: npm run build
- name: Deploy via SCP - name: Deploy via SCP
uses: appleboy/scp-action@v0.1.7 run: |
with: mkdir -p ~/.ssh
host: ${{ secrets.SSH_HOST }} echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/deploy_key
port: ${{ secrets.SSH_PORT }} chmod 600 ~/.ssh/deploy_key
username: root ssh-keyscan -p ${{ secrets.SSH_PORT }} -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts
key: ${{ secrets.SSH_PRIVATE_KEY }} scp -P ${{ secrets.SSH_PORT }} -i ~/.ssh/deploy_key -r dist/* root@${{ secrets.SSH_HOST }}:/var/www/proto.bodalab.diffthink.kr/
source: dist/*
target: /var/www/proto.bodalab.diffthink.kr/
strip_components: 1