fix: use rsync+sshpass to push code instead of scp-action
Some checks failed
Deploy to Server / deploy (push) Failing after 1s
Some checks failed
Deploy to Server / deploy (push) Failing after 1s
This commit is contained in:
@@ -8,16 +8,17 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: https://gitea.com/actions/checkout@v4
|
uses: https://gitea.com/actions/checkout@v4
|
||||||
|
|
||||||
- name: Copy code to server via SCP
|
- name: Install sshpass
|
||||||
uses: https://gitea.com/actions/appleboy-scp-action@v0.1.7
|
run: apt-get install -y sshpass rsync
|
||||||
with:
|
|
||||||
host: 6.6.6.66
|
- name: Copy code to server
|
||||||
username: quant
|
run: |
|
||||||
password: 123quant-speed
|
sshpass -p "123quant-speed" rsync -avz --delete \
|
||||||
source: "."
|
--exclude='.git' \
|
||||||
target: /home/quant/data/dev/deploy
|
--exclude='backend/.env' \
|
||||||
rm: false
|
--exclude='backend/media/' \
|
||||||
overwrite: true
|
-e "ssh -o StrictHostKeyChecking=no" \
|
||||||
|
./ quant@6.6.6.66:/home/quant/data/dev/deploy/
|
||||||
|
|
||||||
- name: Deploy on server via SSH
|
- name: Deploy on server via SSH
|
||||||
uses: https://gitea.com/actions/appleboy-ssh-action@v1.0.3
|
uses: https://gitea.com/actions/appleboy-ssh-action@v1.0.3
|
||||||
|
|||||||
Reference in New Issue
Block a user