job separati
Some checks failed
Updates the graph by copying the updated files in the right directory / build-and-deploy (push) Failing after 2s
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:
parent
c931fd3ee7
commit
7d06f071aa
1 changed files with 7 additions and 5 deletions
|
|
@ -32,18 +32,20 @@ jobs:
|
||||||
fi
|
fi
|
||||||
shell: bash
|
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
|
# 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)
|
# (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/...
|
- name: Copy files to reverse proxy /var/www/...
|
||||||
env:
|
env:
|
||||||
SSH_KEY: ${{ secrets.PROXY_SSH_KEY }}
|
|
||||||
SSH_USER: ${{ secrets.PROXY_USER }}
|
SSH_USER: ${{ secrets.PROXY_USER }}
|
||||||
SSH_HOST: ${{ secrets.PROXY_HOST }}
|
SSH_HOST: ${{ secrets.PROXY_HOST }}
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.ssh
|
|
||||||
echo "$SSH_KEY" > /root/.ssh/id_ed25519
|
|
||||||
chmod 600 /root/.ssh/id_ed25519
|
|
||||||
|
|
||||||
scp -i /root/.ssh/id_ed25519 \
|
scp -i /root/.ssh/id_ed25519 \
|
||||||
-o StrictHostKeyChecking=no \
|
-o StrictHostKeyChecking=no \
|
||||||
-r public/* $SSH_USER@$SSH_HOST:/var/www/miniera.hackinpovo.it/html/
|
-r public/* $SSH_USER@$SSH_HOST:/var/www/miniera.hackinpovo.it/html/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue