debug deploy

This commit is contained in:
ValueOn AG 2026-02-06 02:27:35 +01:00
parent 69dea8423e
commit 5a20a0bd4c

View file

@ -27,6 +27,17 @@ jobs:
chmod 600 ~/.ssh/deploy_key
ssh-keyscan -H ${{ secrets.SERVER_HOST }} >> ~/.ssh/known_hosts
# 2.5 Debug SSH
- name: Debug SSH Connection
run: |
echo "=== Key file info ==="
ls -la ~/.ssh/deploy_key
head -1 ~/.ssh/deploy_key
tail -1 ~/.ssh/deploy_key
echo "=== Testing SSH ==="
ssh -vvv -i ~/.ssh/deploy_key -o StrictHostKeyChecking=no ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }} "echo SUCCESS" 2>&1 | head -100
# 3. Dateien zum Server kopieren
- name: Deploy files to server
run: |