Skip to content

Commit

Permalink
auto pull docker
Browse files Browse the repository at this point in the history
  • Loading branch information
zds-s committed Oct 14, 2024
1 parent ce1cd9d commit 52023d1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deploy-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ jobs:
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
script: |
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD $DOCKER_REGISTRY
docker pull $DOCKER_REGISTRY/mineadmin/mineadmin/doc-v3:$SHA
docker stop doc-v3 || true
docker rm doc-v3 || true
docker run -d --name doc-v3 -p 55500:80 ${{ secrets.CODING_SERVER }}/mineadmin/mineadmin/doc-v3:$SHA
export CONDING_SERVER=$DOCKER_REGISTRY
export SHA=$SHA
export CONDING_USER=$DOCKER_USERNAME
export CONDING_PASS=$DOCKER_PASSWORD
sh /opt/www/deploy-doc-v3.sh

0 comments on commit 52023d1

Please sign in to comment.