Skip to content

Commit

Permalink
Update docker-ci.yml : kill process 6379
Browse files Browse the repository at this point in the history
  • Loading branch information
pingowl authored May 22, 2024
1 parent d532d1f commit 52b11cd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/docker-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ jobs:
envs: APP, COMPOSE
script_stop: true
script: |
# Find and kill process using port 6379
PID=$(sudo lsof -t -i:6379)
if [ -n "$PID" ]; then
sudo kill -9 $PID
fi
sudo docker-compose -f $COMPOSE down
sudo docker pull ${{ secrets.DOCKERHUB_USERNAME }}/drugbox-grad
sudo docker-compose -f $COMPOSE up -d
Expand Down

0 comments on commit 52b11cd

Please sign in to comment.