Skip to content

Commit

Permalink
Update search-ci-cd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeineb2001 authored Dec 25, 2024
1 parent ee2f203 commit c540995
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/search-ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c540995

Please sign in to comment.