16 lines
390 B
YAML
16 lines
390 B
YAML
kind: pipeline
|
||
type: docker
|
||
name: quant-ci
|
||
|
||
steps:
|
||
- name: build docker image
|
||
image: docker:20.10
|
||
commands:
|
||
# 构建镜像,tag 使用 commit sha
|
||
- docker build -t registry.memorion.cn/quant/strategy:${DRONE_COMMIT_SHA} .
|
||
# 推送镜像到匿名 registry
|
||
- docker push registry.memorion.cn/quant/strategy:${DRONE_COMMIT_SHA}
|
||
|
||
trigger:
|
||
branch:
|
||
- main |