fix(deploy): exclude content/.indiekit/ from rsync --delete

This directory is managed by the node jail, not by the build. rsync
was trying to delete homepage.json (placed by the other jail) and
failing with permission denied.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
svemagie
2026-03-16 21:38:05 +01:00
parent 55884b83f2
commit b0b87d24c4
+1
View File
@@ -116,6 +116,7 @@ jobs:
ssh-keyscan -p 222 ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts 2>/dev/null ssh-keyscan -p 222 ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts 2>/dev/null
cp .env _site/.env cp .env _site/.env
rsync -rlz --delete \ rsync -rlz --delete \
--exclude='content/.indiekit/' \
-e "ssh -p 222" \ -e "ssh -p 222" \
_site/ \ _site/ \
${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/usr/local/bastille/jails/web/root/usr/local/www/blog/ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/usr/local/bastille/jails/web/root/usr/local/www/blog/