Actionmtest
Some checks failed
Deploy Docs / build-and-deploy (push) Failing after 12s

This commit is contained in:
2026-01-04 12:36:00 +01:00
parent a7d39f26e0
commit db63ca64b2

View File

@@ -25,12 +25,21 @@ jobs:
# 3. MkDocs Build (erzeugt den Ordner doc/site)
.venv/bin/python -m mkdocs build -f doc/mkdocs.yml
- name: Deploy to Proxmox Webserver
uses: https://github.com/burnett01/rsync-deployments@5.2.1
with:
switches: -avzr --delete
path: ./doc/site/
remote_path: /var/www/pages/lasertag
remote_host: ${{ secrets.DEPLOY_HOST }}
remote_user: deploy
remote_key: ${{ secrets.DEPLOY_SSH_KEY }}
- name: Deploy via rsync
shell: bash
env:
SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
SSH_HOST: ${{ secrets.DEPLOY_HOST }}
run: |
# 1. Den SSH-Key aus dem Secret in eine temporäre Datei schreiben
echo "$SSH_KEY" > deploy_key
chmod 600 deploy_key
# 2. Rsync ausführen
# -e konfiguriert SSH so, dass der Key genutzt wird und die Host-Prüfung entfällt
rsync -avzr --delete \
-e "ssh -i deploy_key -o StrictHostKeyChecking=no" \
./doc/site/ deploy@$SSH_HOST:/var/www/pages/lasertag
# 3. Sicherheit: Key-Datei nach dem Transfer sofort löschen
rm deploy_key