22 lines
692 B
YAML
22 lines
692 B
YAML
kind: pipeline
|
||
type: docker
|
||
name: default
|
||
|
||
clone:
|
||
disable: true
|
||
|
||
# 私有仓库的拉取凭证密钥,在服务器登录私有仓库:docker login 私有仓库地址
|
||
# 然后复制 /root/.docker/config.json 里面的所有内容,到 drone 项目的 Secrets
|
||
# 中,新建 Secrets,名字填 docker_auth_config,值 是刚复制的内容
|
||
image_pull_secrets:
|
||
- docker_auth_config
|
||
|
||
steps:
|
||
- name: run-ai
|
||
image: registry.buyusdt.xyz/ai-modelscope:latest
|
||
network_mode: host
|
||
commands:
|
||
- echo "192.168.31.100 git.buyusdt.xyz" >> /etc/hosts
|
||
- git clone https://git.buyusdt.xyz/bmy/ai-hand
|
||
- cd /drone/src/ai-hand/ && uvicorn main:app --reload --host '0.0.0.0' --port 9741
|