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:
svemagie
2026-03-16 21:35:58 +01:00
parent 7ebd3037e6
commit 55884b83f2

View File

@@ -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/