quant-platform/.drone.yml
ai-liuys ca8786c1b1
Some checks reported errors
continuous-integration/drone Build encountered an error
镜像构建测试流水线
2026-02-21 17:24:59 +08:00

31 lines
682 B
YAML

kind: pipeline
type: docker
name: quant-ci
steps:
- name: build docker image
image: docker:20.10
volumes:
- name: dockersock
path: /var/run/docker.sock
environment:
DOCKER_HOST: unix:///var/run/docker.sock
commands:
- docker build -t 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
volumes:
- name: dockersock
host:
path: /var/run/docker.sock
trigger:
branch:
- main