镜像构建测试流水线
Some checks reported errors
continuous-integration/drone Build encountered an error

This commit is contained in:
ai-liuys 2026-02-21 17:16:36 +08:00
parent 040614c3d2
commit 545b4fae80

View File

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