From 5027e101898c12dd976105c9bcad05b20cf24f39 Mon Sep 17 00:00:00 2001 From: Kim Date: Mon, 23 Oct 2023 17:41:00 +0200 Subject: [PATCH] hostchecking... --- .gitea/workflows/stage-deploy.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/stage-deploy.yaml b/.gitea/workflows/stage-deploy.yaml index d9e7dd0de..19b668829 100644 --- a/.gitea/workflows/stage-deploy.yaml +++ b/.gitea/workflows/stage-deploy.yaml @@ -38,9 +38,9 @@ jobs: SSH_KEY: ${{ secrets.STAGING_SSH_KEY }} SSH_HOST: ${{ secrets.STAGING_SSH_HOST }} - run: cd ${{ gitea.workspace }} - - run: scp -r ./csharp/App/Backend/bin/Release/net6.0/linux-x64/publish/ ubuntu@${{ secrets.STAGING_SSH_HOST }}:~/backend - - run: scp -r ./typescript/frontend-marios2/* ubuntu@${{ secrets.STAGING_SSH_HOST }}:~/frontend/ - - run: ssh staging 'sudo systemctl restart backend' - - run: ssh staging 'sudo cp -rf ~/frontend/build/* /var/www/html/monitor.innov.energy/html/' - - run: ssh staging 'sudo npm install -g serve' + - run: scp -o StrictHostKeyChecking=no -r ./csharp/App/Backend/bin/Release/net6.0/linux-x64/publish/ ubuntu@${{ secrets.STAGING_SSH_HOST }}:~/backend + - run: scp -o StrictHostKeyChecking=no -r ./typescript/frontend-marios2/* ubuntu@${{ secrets.STAGING_SSH_HOST }}:~/frontend/ + - run: ssh -o StrictHostKeyChecking=no staging 'sudo systemctl restart backend' + - run: ssh -o StrictHostKeyChecking=no staging 'sudo cp -rf ~/frontend/build/* /var/www/html/monitor.innov.energy/html/' + - run: ssh -o StrictHostKeyChecking=no staging 'sudo npm install -g serve' - run: echo " This job's status is ${{ job.status }}." \ No newline at end of file