From c5409958d8cc1286a322339adcb562d7c6b65914 Mon Sep 17 00:00:00 2001 From: ZeinebMESSAOUDI <130365664+Zeineb2001@users.noreply.github.com> Date: Wed, 25 Dec 2024 18:21:36 +0100 Subject: [PATCH] Update search-ci-cd.yml --- .github/workflows/search-ci-cd.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/search-ci-cd.yml b/.github/workflows/search-ci-cd.yml index 1a5df9a6..290efab6 100644 --- a/.github/workflows/search-ci-cd.yml +++ b/.github/workflows/search-ci-cd.yml @@ -76,7 +76,11 @@ 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 8089 (if any) + run: | + sshpass -p "${{ secrets.DEPLOYMENT_MACHINE_USER_PSW }}" ssh ${{ secrets.DEPLOYMENT_MACHINE_USER }}@${{ secrets.DEPLOYMENT_MACHINE_IP }} \ + "fuser -k 8089/tcp || echo 'No process on port 8089'" - name: Deploy JAR to VPS uses: appleboy/ssh-action@v0.1.2 with: