diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..c35dcde --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,18 @@ +name: Remote Deploy + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Deploy latest code on remote server + run: | + echo "$SSH_KEY" > key.pem + chmod 600 key.pem + ssh -i key.pem -o StrictHostKeyChecking=no root@10.20.30.102 'bash pull.sh' + env: + SSH_KEY: ${{ secrets.SSH_KEY }}