quant-platform/.drone.yml
ai-liuys d6193c654e
Some checks failed
continuous-integration/drone Build is failing
镜像构建测试流水线
2026-02-21 17:47:21 +08:00

30 lines
652 B
YAML

kind: pipeline
type: docker
name: quant-ci
steps:
- name: build-and-push
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: backtest
image: python:3.11-slim
commands:
- pip install -r requirements.txt
- python tests/run_backtest.py
volumes:
- name: dockersock
host:
path: /var/run/docker.sock
trigger:
branch:
- main