Files
ai-hand/.drone.yml
编码猿 c2a3a840a6 ww
2025-08-29 22:00:37 +08:00

22 lines
692 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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