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

This commit is contained in:
2026-01-04 12:40:24 +01:00
parent 19caf794ef
commit bc48ed2228

View File

@@ -26,20 +26,7 @@ jobs:
.venv/bin/python -m mkdocs build -f doc/mkdocs.yml
- 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
/usr/bin/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