took out some sudo commands
This commit is contained in:
parent
916c311deb
commit
441bbaae9c
|
@ -28,7 +28,7 @@ jobs:
|
||||||
username: ubuntu
|
username: ubuntu
|
||||||
key: ${{ secrets.STAGING_SSH_KEY }}
|
key: ${{ secrets.STAGING_SSH_KEY }}
|
||||||
source: "${{ gitea.workspace }}/csharp/App/Backend/bin/Release/net6.0/linux-x64/publish/"
|
source: "${{ gitea.workspace }}/csharp/App/Backend/bin/Release/net6.0/linux-x64/publish/"
|
||||||
target: "staging:~/backend"
|
target: "~/backend"
|
||||||
|
|
||||||
- name: Copy Frontend
|
- name: Copy Frontend
|
||||||
uses: appleboy/scp-action@v0.1.4
|
uses: appleboy/scp-action@v0.1.4
|
||||||
|
@ -37,19 +37,16 @@ jobs:
|
||||||
username: ubuntu
|
username: ubuntu
|
||||||
key: ${{ secrets.STAGING_SSH_KEY }}
|
key: ${{ secrets.STAGING_SSH_KEY }}
|
||||||
source: "${{ gitea.workspace }}/typescript/frontend-marios2/"
|
source: "${{ gitea.workspace }}/typescript/frontend-marios2/"
|
||||||
target: "staging:~/frontend"
|
target: "~/frontend"
|
||||||
|
|
||||||
- name: restart services
|
- name: restart services
|
||||||
uses: appleboy/ssh-action@v0.1.4
|
uses: appleboy/ssh-action@v0.1.4
|
||||||
with:
|
with:
|
||||||
host: 91.92.154.141
|
host: 91.92.154.141
|
||||||
username: ubuntu
|
username: ubuntu
|
||||||
# key_path: /root/.ssh/id_rsa
|
|
||||||
key: ${{ secrets.STAGING_SSH_KEY }}
|
key: ${{ secrets.STAGING_SSH_KEY }}
|
||||||
script: |
|
script: |
|
||||||
sudo systemctl restart backend
|
sudo ~/backend/Resources/deploy.sh
|
||||||
sudo cp -rf ~/frontend/build/* /var/www/html/monitor.innov.energy/html/
|
|
||||||
sudo npm install -g serve
|
|
||||||
- run: echo " This job's status is ${{ job.status }}."
|
- run: echo " This job's status is ${{ job.status }}."
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
sudo systemctl restart backend
|
||||||
|
sudo cp -rf ~/frontend/build/*
|
||||||
|
sudo npm install -g serve/var/www/html/monitor.innov.energy/html/
|
Loading…
Reference in New Issue