fix: i file, una volta validati, vengono ora copiati sulla macchina proxi con ssh
Some checks failed
Updates the graph by copying the updated files in the right directory / build-and-deploy (push) Has been cancelled

This commit is contained in:
Freekkettone 2025-11-14 04:35:44 +01:00
parent 3b46f3d5b1
commit 854d3d2980

View file

@ -10,12 +10,15 @@ jobs:
runs-on: usainbolt
steps:
# Checkout means: tirati giù la repo in locale
#DA QUI IN POI, RICORDA CHE È COME SE FOSSI SUL GITRUNNER usainbolt
# Checkout means: mi tiro giù la repo in locale
- name: Checkout repository
uses: actions/checkout@v4
- name: Install jq if needed (used to validate json files)
run: sudo apt-get update && sudo apt-get install -y jq
run: |
sudo apt-get update && sudo apt-get install -y jq
- name: Validate arf.json
run: |
@ -25,11 +28,11 @@ jobs:
fi
shell: bash
- name: Copy files to reverse proxy
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.PROXY_HOST }}
username: ${{ secrets.PROXY_USER }}
key: ${{ secrets.PROXY_SSH_KEY }}
script: |
cp -r /home/proxi/resources/public/* /var/www/miniera.hackinpovo.it/html/
# 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_USER: ${{ secrets.PROXY_USER }}
SSH_HOST: ${{ secrets.PROXY_HOST }}
run: |
scp -i /root/.ssh/id_ed25519 public/* $SSH_USER@$SS_HOST:/var/www/miniera.hackinpovo.it/html/