trying local ssh setup instead
This commit is contained in:
parent
1e974681f8
commit
216a97812e
|
@ -25,8 +25,6 @@ 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
|
||||
|
@ -38,7 +36,6 @@ 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'
|
||||
|
|
Loading…
Reference in New Issue