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

This commit is contained in:
ai-liuys 2026-02-21 17:20:58 +08:00
parent 545b4fae80
commit f09d5d1a8f

View File

@ -15,9 +15,19 @@ steps:
DOCKER_HOST: tcp://docker:2375 DOCKER_HOST: tcp://docker:2375
DOCKER_TLS_VERIFY: "0" DOCKER_TLS_VERIFY: "0"
commands: commands:
- echo "构建 Docker 镜像..."
- docker build -t registry.memorion.cn/quant/strategy:${DRONE_COMMIT_SHA} . - docker build -t registry.memorion.cn/quant/strategy:${DRONE_COMMIT_SHA} .
- echo "推送 Docker 镜像到私有 Registry..."
- docker push registry.memorion.cn/quant/strategy:${DRONE_COMMIT_SHA} - docker push registry.memorion.cn/quant/strategy:${DRONE_COMMIT_SHA}
- name: run backtest
image: python:3.11-slim
commands:
- pip install -r requirements.txt
- mkdir -p data
- python tests/run_backtest.py
- echo "回测数据生成完成,存放在 data/ 目录下"
trigger: trigger:
branch: branch:
- main - main