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
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:
parent
3b46f3d5b1
commit
854d3d2980
1 changed files with 13 additions and 10 deletions
|
|
@ -10,12 +10,15 @@ jobs:
|
||||||
runs-on: usainbolt
|
runs-on: usainbolt
|
||||||
|
|
||||||
steps:
|
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
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install jq if needed (used to validate json files)
|
- 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
|
- name: Validate arf.json
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -25,11 +28,11 @@ jobs:
|
||||||
fi
|
fi
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Copy files to reverse proxy
|
# Fanculo i pacchetti già pronti per usare ssh su questi yml
|
||||||
uses: appleboy/ssh-action@v1.0.3
|
# (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)
|
||||||
with:
|
- name: Copy files to reverse proxy /var/www/...
|
||||||
host: ${{ secrets.PROXY_HOST }}
|
env:
|
||||||
username: ${{ secrets.PROXY_USER }}
|
SSH_USER: ${{ secrets.PROXY_USER }}
|
||||||
key: ${{ secrets.PROXY_SSH_KEY }}
|
SSH_HOST: ${{ secrets.PROXY_HOST }}
|
||||||
script: |
|
run: |
|
||||||
cp -r /home/proxi/resources/public/* /var/www/miniera.hackinpovo.it/html/
|
scp -i /root/.ssh/id_ed25519 public/* $SSH_USER@$SS_HOST:/var/www/miniera.hackinpovo.it/html/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue