trying local ssh setup instead

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

View File

@ -25,8 +25,6 @@ jobs:
run: | run: |
mkdir -p /root/.ssh/ mkdir -p /root/.ssh/
touch /root/.ssh/config touch /root/.ssh/config
echo $SSH_KEY > /root/.ssh/id_rsa
chmod 600 /root/.ssh/id_rsa
cat >> /root/.ssh/config <<END cat >> /root/.ssh/config <<END
Host staging Host staging
@ -38,7 +36,6 @@ jobs:
env: env:
SSH_USER: ubuntu SSH_USER: ubuntu
SSH_HOST: 91.92.154.141 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 }}/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: scp -vo StrictHostKeyChecking=no -r ${{ gitea.workspace }}/typescript/frontend-marios2/* staging:~/frontend/
- run: ssh -vo StrictHostKeyChecking=no staging 'sudo systemctl restart backend' - run: ssh -vo StrictHostKeyChecking=no staging 'sudo systemctl restart backend'