fix: ci
Some checks failed
Deploy to SFTP Server / build (push) Failing after 5s

This commit is contained in:
max_richter 2024-04-07 21:14:43 +02:00
parent cf74b0f7ef
commit f9833fa5eb

View File

@ -18,10 +18,7 @@ jobs:
steps: steps:
- name: 🔑 Set up SSH Key - name: 🔑 Set up SSH Key
run: | run: |
eval `ssh-agent -s`
echo "$SSH_PRIVATE_KEY" > /tmp/id_rsa echo "$SSH_PRIVATE_KEY" > /tmp/id_rsa
chmod 600 /tmp/id_rsa
ssh-add /tmp/id_rsa
env: env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
@ -32,7 +29,7 @@ jobs:
- name: 🚀 Deploy Changed Files via rsync - name: 🚀 Deploy Changed Files via rsync
run: | run: |
rsync -avz -e "ssh -o StrictHostKeyChecking=no -p ${SSH_PORT}" ./dist/ ${SSH_USER}@${SSH_HOST}:${REMOTE_DIR} rsync -avz -e "ssh -o StrictHostKeyChecking=no -i /tmp/id_rsa -p ${SSH_PORT}" ./dist/ ${SSH_USER}@${SSH_HOST}:${REMOTE_DIR}
env: env:
SSH_HOST: ${{ vars.SSH_HOST }} SSH_HOST: ${{ vars.SSH_HOST }}
SSH_PORT: ${{ vars.SSH_PORT }} SSH_PORT: ${{ vars.SSH_PORT }}