automated_api/.drone.yml
lixin 88243a02f1
Some checks failed
continuous-integration/drone/push Build is failing
build: 移除 Node.js 18 安装步骤
- 删除了 setup-nodejs 步骤,该步骤安装 Node.js 18
- 保留了 docker-build 步骤
2025-01-10 14:02:17 +08:00

28 lines
435 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
- 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