job separati
Some checks failed
Updates the graph by copying the updated files in the right directory / build-and-deploy (push) Failing after 2s

This commit is contained in:
Freekkettone 2025-11-14 05:12:07 +01:00
parent c931fd3ee7
commit 7d06f071aa

View file

@ -32,18 +32,20 @@ jobs:
fi
shell: bash
- name: Copy the secret ssh in .ssh
env:
SSH_KEY: ${{ secrets.PROXY_SSH_KEY }}
run: mkdir -p ~/.ssh
echo "$SSH_KEY" > /root/.ssh/id_ed25519
chmod 600 /root/.ssh/id_ed25519
# Fanculo i pacchetti già pronti per usare ssh su questi yml
# (tieni a mente che con questa sola copia la repo su proxi rimane outdated perché viene fatta la copia direttamente dentro /var/www senza toccare ~/resources)
- name: Copy files to reverse proxy /var/www/...
env:
SSH_KEY: ${{ secrets.PROXY_SSH_KEY }}
SSH_USER: ${{ secrets.PROXY_USER }}
SSH_HOST: ${{ secrets.PROXY_HOST }}
run: |
mkdir -p ~/.ssh
echo "$SSH_KEY" > /root/.ssh/id_ed25519
chmod 600 /root/.ssh/id_ed25519
scp -i /root/.ssh/id_ed25519 \
-o StrictHostKeyChecking=no \
-r public/* $SSH_USER@$SSH_HOST:/var/www/miniera.hackinpovo.it/html/