测试drone 的自动化
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
编码猿
2025-01-24 21:16:06 +08:00
parent 1f07896627
commit 3bb7361da0
3 changed files with 13 additions and 7 deletions

9
.drone.yml Normal file
View File

@@ -0,0 +1,9 @@
kind: pipeline
type: docker
name: default
steps:
- name: greeting
image: registry.buyusdt.xyz/ai-modelscope:latest
commands:
- uvicorn main:app --reload --host '0.0.0.0' --port 9741

View File

@@ -1,4 +1,4 @@
FROM 2271608011/ai-modelscope:v1.0
FROM registry.buyusdt.xyz/ai-modelscope:latest
WORKDIR /code
COPY . /code

View File

@@ -1,11 +1,8 @@
version: '3'
services:
ai:
image: 2271608011/ai-modelscope:v1.0
container_name: ai
image: registry.buyusdt.xyz/ai-check-hand:v1.0
container_name: ai-check-hand
restart: unless-stopped
ports:
- 9741:9741
volumes:
- .:/code
command: /bin/bash -c "cd /code && uvicorn main:app --proxy-headers --host '0.0.0.0' --port 9741"
- 9741:9741