fix rsync
This commit is contained in:
@ -10,7 +10,7 @@ on:
|
||||
- 'css/**'
|
||||
- 'js/**'
|
||||
- 'images/**'
|
||||
workflow_dispatch: # Now available in 1.24.2!
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
@ -31,7 +31,6 @@ jobs:
|
||||
echo "${{ secrets.DEPLOY_SSH_KEY }}" > ~/.ssh/deploy_key
|
||||
chmod 600 ~/.ssh/deploy_key
|
||||
|
||||
# Use relaxed host checking
|
||||
echo "Host *" > ~/.ssh/config
|
||||
echo " StrictHostKeyChecking no" >> ~/.ssh/config
|
||||
echo " UserKnownHostsFile /dev/null" >> ~/.ssh/config
|
||||
@ -47,8 +46,14 @@ jobs:
|
||||
DEPLOY_USER="deploy"
|
||||
WEBSITE_DIR="/media/stephen/Storage_Linux/infrastructure/services/websites/maverickApplications"
|
||||
|
||||
echo "📁 Syncing files to server..."
|
||||
echo "📁 Syncing website files to server..."
|
||||
rsync -avz --delete \
|
||||
--no-times \
|
||||
--no-perms \
|
||||
--exclude='.git' \
|
||||
--exclude='.gitea' \
|
||||
--exclude='README.md' \
|
||||
--exclude='docker-compose.yml' \
|
||||
-e "ssh -i ~/.ssh/deploy_key" \
|
||||
./ $DEPLOY_USER@$SERVER_IP:$WEBSITE_DIR/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user