diff --git a/.drone.yml b/.drone.yml index bc02317..120b8ef 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,13 +2,20 @@ kind: pipeline type: docker name: quant-ci +services: + docker: + image: docker:20.10-dind + privileged: true + steps: - name: build docker image image: docker:20.10 + privileged: true + environment: + DOCKER_HOST: tcp://docker:2375 + DOCKER_TLS_VERIFY: "0" commands: - # 构建镜像,tag 使用 commit sha - docker build -t registry.memorion.cn/quant/strategy:${DRONE_COMMIT_SHA} . - # 推送镜像到匿名 registry - docker push registry.memorion.cn/quant/strategy:${DRONE_COMMIT_SHA} trigger: