diff --git a/.drone.yml b/.drone.yml index dfe2c91..5e81188 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,15 +15,9 @@ steps: image: plugins/docker settings: dockerfile: Dockerfile - repo: your-registry/nodejs-app tags: - latest - ${DRONE_COMMIT_SHA:0:8} - registry: registry.cn-hangzhou.aliyuncs.com # 替换为您的镜像仓库地址 - username: - from_secret: docker_username - password: - from_secret: docker_password volumes: - name: node_modules path: /drone/src/node_modules @@ -33,16 +27,6 @@ steps: - name: deploy image: docker:dind commands: - - mkdir -p /etc/docker - - | - echo '{ - "registry-mirrors": [ - "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 nodejs-app || true - docker rm nodejs-app || true - >