switched to rsa key type
Deploy static site / deploy (push) Failing after 25s

This commit is contained in:
2026-04-23 11:24:34 +02:00
parent 69fb550c18
commit 3f83fd8a1d
+19 -7
View File
@@ -21,14 +21,26 @@ jobs:
- name: Setup SSH - name: Setup SSH
run: | run: |
mkdir -p ~/.ssh mkdir -p ~/.ssh
echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_ed25519 echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_ed25519 chmod 600 ~/.ssh/id_rsa
ssh-keyscan -p ${{ secrets.DEPLOY_PORT }} ${{ secrets.DEPLOY_HOST }} >> ~/.ssh/known_hosts
ssh-keyscan -p ${{ secrets.DEPLOY_PORT }} -t rsa ${{ secrets.DEPLOY_HOST }} >> ~/.ssh/known_hosts
cat <<EOF >> ~/.ssh/config
Host deploy
HostName ${{ secrets.DEPLOY_HOST }}
User ${{ secrets.DEPLOY_USER }}
Port ${{ secrets.DEPLOY_PORT }}
IdentityFile ~/.ssh/id_rsa
IdentitiesOnly yes
StrictHostKeyChecking yes
HostKeyAlgorithms ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa
EOF
- name: Deploy via rsync - name: Deploy via rsync
run: | run: |
rsync -avz \ rsync -avz --delete \
-e "ssh -p ${{ secrets.DEPLOY_PORT }}" \ -e "ssh deploy" \
--delete \
index.html styles.css de/ en/ \ index.html styles.css de/ en/ \
${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}:${{ secrets.DEPLOY_PATH }} deploy:${{ secrets.DEPLOY_PATH }}