diff --git a/.drone.yml b/.drone.yml index d4ad297..8a92243 100644 --- a/.drone.yml +++ b/.drone.yml @@ -41,18 +41,29 @@ steps: - name: deploy image: docker:dind commands: - - docker stop nodejs-app || true - - docker rm nodejs-app || true + - mkdir -p /etc/docker + - | + echo '{ + "registry-mirrors": [ + "https://docker.1panelproxy.com", + "https://docker.1panel.live", + "https://ustc-edu-cn.mirror.aliyuncs.com", + "https://ccr.ccs.tencentyun.com", + "https://docker.m.daocloud.io" + ] + }' > /etc/docker/daemon.json + - docker stop automated-api || true + - docker rm automated-api || true - > docker run -d - --name nodejs-app + --name automated-api --restart always -p 8001:8001 -v /usr/local/blackend/node_modules:/app/node_modules -v /usr/local/blackend/pnpm_cache:/root/.local/share/pnpm/store -e NODE_ENV=production -e PORT=8001 - your-registry/nodejs-app:latest + automated-api:latest volumes: - name: docker_sock path: /var/run/docker.sock