fix(deploy): use rsync -rlz instead of -avz to avoid permission errors
The deploy user cannot set timestamps on the jail root directory. Drop -a (which implies -t, -p, -o, -g) in favor of -rlz (recursive, symlinks, compress) which is sufficient for deploying static files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2
.github/workflows/deploy.yml
vendored
2
.github/workflows/deploy.yml
vendored
@@ -115,7 +115,7 @@ jobs:
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
ssh-keyscan -p 222 ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts 2>/dev/null
|
||||
cp .env _site/.env
|
||||
rsync -avz --delete \
|
||||
rsync -rlz --delete \
|
||||
-e "ssh -p 222" \
|
||||
_site/ \
|
||||
${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/usr/local/bastille/jails/web/root/usr/local/www/blog/
|
||||
|
||||
Reference in New Issue
Block a user