local paths in deploy
This commit is contained in:
parent
5b272b4647
commit
e3726f92ee
|
@ -1,6 +1,6 @@
|
|||
#/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'
|
||||
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 npm install -g serve'
|
|
@ -1,6 +1,6 @@
|
|||
#/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'
|
||||
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 npm install -g serve'
|
|
@ -23,5 +23,6 @@ jobs:
|
|||
npm --prefix ${{ gitea.workspace }}/typescript/frontend-marios2 run build
|
||||
- name: copy everything to Prod
|
||||
run: |
|
||||
${{ gitea.workspace }}/.gitea/Prod-deploy.sh
|
||||
cd ${{ gitea.workspace }}
|
||||
./.gitea/Prod-deploy.sh
|
||||
- run: echo " This job's status is ${{ job.status }}."
|
|
@ -23,5 +23,6 @@ jobs:
|
|||
npm --prefix ${{ gitea.workspace }}/typescript/frontend-marios2 run build
|
||||
- name: copy everything to Stage
|
||||
run: |
|
||||
${{ gitea.workspace }}/.gitea/Stage-deploy.sh
|
||||
cd ${{ gitea.workspace }}
|
||||
./.gitea/Stage-deploy.sh
|
||||
- run: echo " This job's status is ${{ job.status }}."
|
Loading…
Reference in New Issue