Skip to content

testing workflow, set-2 #4

testing workflow, set-2

testing workflow, set-2 #4

Workflow file for this run

name: deploying the backend to vm
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: ssh into vm and deploy the docker image for backend
uses: appleboy/ssh-action@v1
with:
host: ${{ secrets.VM_HOST }}
username: ubuntu
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
whoami
export PATH=$PATH:/home/ubuntu/.nvm/versions/node/v24.4.1/bin
source ~/.bashrc
cd ~/paytm-Backend
git pull origin main
echo "pull complete"
npm install
npm run build
pm2 restart "finno_be"