From 8a771b6723ebc473a56d032ac3666ad11ddb3d4a Mon Sep 17 00:00:00 2001 From: ZeinebMESSAOUDI <130365664+Zeineb2001@users.noreply.github.com> Date: Fri, 27 Dec 2024 17:55:54 +0100 Subject: [PATCH] Update pricing-pipeline.yml --- .github/workflows/pricing-pipeline.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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: