fix: ssl 폴더 보존하면서 배포
- ssl 폴더를 제외하고 나머지 파일만 삭제 - 권한 문제 해결 위해 find 명령어 사용 - README.md 배포 플로우 설명 업데이트 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
272c483e09
commit
2d681632c1
2
.github/workflows/deploy.yml
vendored
2
.github/workflows/deploy.yml
vendored
@ -23,7 +23,7 @@ jobs:
|
||||
PORT: ${{ secrets.NAS_PORT }}
|
||||
USER: ${{ secrets.NAS_USER }}
|
||||
run: |
|
||||
ssh -o StrictHostKeyChecking=no -p $PORT $USER@$HOST "rm -rf ~/robeing-nginx && mkdir -p ~/robeing-nginx"
|
||||
ssh -o StrictHostKeyChecking=no -p $PORT $USER@$HOST "mkdir -p ~/robeing-nginx && find ~/robeing-nginx -maxdepth 1 -not -name ssl -not -name '.' -exec rm -rf {} + || true"
|
||||
tar --exclude='.git' -czf - . | ssh -o StrictHostKeyChecking=no -p $PORT $USER@$HOST "cd ~/robeing-nginx && tar -xzf -"
|
||||
|
||||
- name: Start services via SSH
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user