ci: install rsync in deploy runner container
Deploy to Production on Develop Push / deploy (push) Successful in 20s Details

This commit is contained in:
mark 2026-08-20 08:30:09 +00:00
parent 9c451f12c5
commit e063b3cd4a
1 changed files with 5 additions and 2 deletions

View File

@ -27,10 +27,13 @@ jobs:
- name: Deploy to Server via rsync
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq rsync openssh-client
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
rsync -avz --delete \
--exclude=".git/" \
--exclude=".gitea/" \
@ -44,4 +47,4 @@ jobs:
--exclude="tools/" \
-e "ssh -p ${{ secrets.SSH_PORT }} -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no" \
./ \
${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:${{ secrets.TARGET_DIR }}
${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:${{ secrets.TARGET_DIR }}