automated_api/.drone.yml
lixin be988374e8
Some checks reported errors
continuous-integration/drone/push Build was killed
ci: 重构 Drone CI 配置
- 移除了不必要的服务
2025-01-10 13:56:34 +08:00

31 lines
565 B
YAML

kind: pipeline
type: docker
name: default
steps:
- name: git-clone
image: alpine/git
commands:
- git clone http://120.48.5.80:3000/lixin/automated_api.git
- cd automated_api
# 安装 Node.js 18 并设置镜像源(这里以淘宝镜像为例,可按需调整)
- name: setup-nodejs
image: node:18
- name: docker-build
image: plugins/docker
settings:
dockerfile: Dockerfile
- name: docker-run
image: docker:20.10
commands:
- docker run -d -p 8001:8001 automated_api:latest
trigger:
branch:
- main
event:
- push