This commit is contained in:
Kim 2023-11-06 10:18:21 +01:00
parent 216a97812e
commit d675fd7c80
1 changed files with 3 additions and 0 deletions

View File

@ -25,6 +25,8 @@ jobs:
run: |
mkdir -p /root/.ssh/
touch /root/.ssh/config
echo $SSH_KEY > /root/.ssh/id_rsa
chmod 600 /root/.ssh/id_rsa
cat >> /root/.ssh/config <<END
Host staging
@ -36,6 +38,7 @@ jobs:
env:
SSH_USER: ubuntu
SSH_HOST: 91.92.154.141
SSS_KEY: ${{ secrets.STAGING_SSH_KEY }}
- run: scp -vo StrictHostKeyChecking=no -r ${{ gitea.workspace }}/csharp/App/Backend/bin/Release/net6.0/linux-x64/publish/ staging:~/backend
- run: scp -vo StrictHostKeyChecking=no -r ${{ gitea.workspace }}/typescript/frontend-marios2/* staging:~/frontend/
- run: ssh -vo StrictHostKeyChecking=no staging 'sudo systemctl restart backend'