local paths in deploy

This commit is contained in:
Kim 2023-10-23 15:43:27 +02:00
parent 5b272b4647
commit e3726f92ee
4 changed files with 8 additions and 6 deletions

View File

@ -1,6 +1,6 @@
#/bin/bash #/bin/bash
rsync -av ${{ gitea.workspace }}/csharp/App/Backend/bin/Release/net6.0/linux-x64/publish/ ubuntu@194.182.190.208:~/backend rsync -av ./csharp/App/Backend/bin/Release/net6.0/linux-x64/publish/ ubuntu@194.182.190.208:~/backend
ssh ubuntu@194.182.190.208 'sudo systemctl restart backend' ssh ubuntu@194.182.190.208 'sudo systemctl restart backend'
rsync -av ${{ gitea.workspace }}/typescript/frontend-marios2/* ubuntu@194.182.190.208:~/frontend/ rsync -av ./typescript/frontend-marios2/* ubuntu@194.182.190.208:~/frontend/
ssh ubuntu@194.182.190.208 'sudo cp -rf ~/frontend/build/* /var/www/html/monitor.innov.energy/html/' ssh ubuntu@194.182.190.208 'sudo cp -rf ~/frontend/build/* /var/www/html/monitor.innov.energy/html/'
ssh ubuntu@194.182.190.208 'sudo npm install -g serve' ssh ubuntu@194.182.190.208 'sudo npm install -g serve'

View File

@ -1,6 +1,6 @@
#/bin/bash #/bin/bash
rsync -av ${{ gitea.workspace }}/csharp/App/Backend/bin/Release/net6.0/linux-x64/publish/ ubuntu@91.92.154.141:~/backend rsync -av ./csharp/App/Backend/bin/Release/net6.0/linux-x64/publish/ ubuntu@91.92.154.141:~/backend
ssh ubuntu@91.92.154.141 'sudo systemctl restart backend' ssh ubuntu@91.92.154.141 'sudo systemctl restart backend'
rsync -av ${{ gitea.workspace }}/typescript/frontend-marios2/* ubuntu@91.92.154.141:~/frontend/ rsync -av ./typescript/frontend-marios2/* ubuntu@91.92.154.141:~/frontend/
ssh ubuntu@91.92.154.141 'sudo cp -rf ~/frontend/build/* /var/www/html/monitor.innov.energy/html/' ssh ubuntu@91.92.154.141 'sudo cp -rf ~/frontend/build/* /var/www/html/monitor.innov.energy/html/'
ssh ubuntu@91.92.154.141 'sudo npm install -g serve' ssh ubuntu@91.92.154.141 'sudo npm install -g serve'

View File

@ -23,5 +23,6 @@ jobs:
npm --prefix ${{ gitea.workspace }}/typescript/frontend-marios2 run build npm --prefix ${{ gitea.workspace }}/typescript/frontend-marios2 run build
- name: copy everything to Prod - name: copy everything to Prod
run: | run: |
${{ gitea.workspace }}/.gitea/Prod-deploy.sh cd ${{ gitea.workspace }}
./.gitea/Prod-deploy.sh
- run: echo " This job's status is ${{ job.status }}." - run: echo " This job's status is ${{ job.status }}."

View File

@ -23,5 +23,6 @@ jobs:
npm --prefix ${{ gitea.workspace }}/typescript/frontend-marios2 run build npm --prefix ${{ gitea.workspace }}/typescript/frontend-marios2 run build
- name: copy everything to Stage - name: copy everything to Stage
run: | run: |
${{ gitea.workspace }}/.gitea/Stage-deploy.sh cd ${{ gitea.workspace }}
./.gitea/Stage-deploy.sh
- run: echo " This job's status is ${{ job.status }}." - run: echo " This job's status is ${{ job.status }}."