diff --git a/.github/workflows/pricing-pipeline.yml b/.github/workflows/pricing-pipeline.yml index 56e04a1d..b0735ddd 100644 --- a/.github/workflows/pricing-pipeline.yml +++ b/.github/workflows/pricing-pipeline.yml @@ -76,7 +76,12 @@ jobs: run: | sshpass -p "${{ secrets.DEPLOYMENT_MACHINE_USER_PSW }}" ssh ${{ secrets.DEPLOYMENT_MACHINE_USER }}@${{ secrets.DEPLOYMENT_MACHINE_IP }} \ "df -h && free -h && top -bn1 | grep 'Cpu(s)'" - + + - name: Kill Process on Port 8086 (if any) + run: | + sshpass -p "${{ secrets.DEPLOYMENT_MACHINE_USER_PSW }}" ssh ${{ secrets.DEPLOYMENT_MACHINE_USER }}@${{ secrets.DEPLOYMENT_MACHINE_IP }} \ + "fuser -k 8086/tcp || echo 'No process on port 8086'" + - name: Deploy JAR to VPS uses: appleboy/ssh-action@v0.1.2 with: