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

This commit is contained in:
ai-liuys 2026-02-21 17:24:59 +08:00
parent 8c8a2f20a3
commit ca8786c1b1

View File

@ -5,14 +5,13 @@ name: quant-ci
steps:
- name: build docker image
image: docker:20.10
privileged: true
volumes:
- name: dockersock
path: /var/run/docker.sock
environment:
DOCKER_HOST: tcp://docker:2375
DOCKER_TLS_VERIFY: "0"
DOCKER_HOST: unix:///var/run/docker.sock
commands:
- echo "构建 Docker 镜像..."
- docker build -t registry.memorion.cn/quant/strategy:${DRONE_COMMIT_SHA} .
- echo "推送 Docker 镜像到私有 Registry..."
- docker push registry.memorion.cn/quant/strategy:${DRONE_COMMIT_SHA}
- name: run backtest
@ -21,7 +20,11 @@ steps:
- pip install -r requirements.txt
- mkdir -p data
- python tests/run_backtest.py
- echo "回测数据生成完成"
volumes:
- name: dockersock
host:
path: /var/run/docker.sock
trigger:
branch: