Skip to content

Commit

Permalink
bug 修复
Browse files Browse the repository at this point in the history
  • Loading branch information
pakizheng committed Jan 11, 2024
1 parent 550b994 commit 92d4a48
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ jobs:
run: |
sudo apt-get install -y sshpass
sshpass -p "$SERVER_PASSWORD" ssh -o StrictHostKeyChecking=no root@${{ secrets.SERVER_ID }} "
docker stop im-web
docker rm im-web
if docker ps -a --format '{{ '{{' }}.Names{{ '}}' }}' | grep -w 'im-web'; then
docker stop im-web
docker rm im-web
fi
echo '${{ secrets.DOCKERHUB_TOKEN }}' | docker login --username ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
docker pull ${{ secrets.DOCKER_USER_NAME }}/im-web:latest
docker run -d -p 3000:3000 --name im-web ${{ secrets.DOCKER_USER_NAME }}/im-web:latest
Expand Down

0 comments on commit 92d4a48

Please sign in to comment.