From 52023d10525d9bb378e5c171184829f6d7ea82ae Mon Sep 17 00:00:00 2001 From: zds <49744633+zds-s@users.noreply.github.com> Date: Mon, 14 Oct 2024 21:11:29 +0800 Subject: [PATCH] auto pull docker --- .github/workflows/deploy-docker.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy-docker.yml b/.github/workflows/deploy-docker.yml index 68f475c..ecd426d 100644 --- a/.github/workflows/deploy-docker.yml +++ b/.github/workflows/deploy-docker.yml @@ -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