automated_api/.drone.yml
lixin f633f3c69e
Some checks failed
continuous-integration/drone/push Build is failing
build(automated_api): 更新 Dockerfile 路径
- 将 Dockerfile 路径从 Dockerfile. 修改为 Dockerfile
- 修正了 Docker 构建命令中的文件路径
2025-01-10 12:38:45 +08:00

35 lines
710 B
YAML

kind: pipeline
type: docker
name: nodejs-22-docker-ci
#测试
steps:
- name: git-clone
image: alpine/git
commands:
- git clone http://120.48.5.80:3000/lixin/automated_api.git
- cd automated_api
- name: build-docker-image
image: docker:latest
volumes:
- name: docker-socket
path: /var/run/docker.sock
working_directory: automated_api
commands:
- docker build -t rz/automated_api:latest -f Dockerfile
- name: run-container
image: docker:latest
commands:
- docker run -d -p 8001:8001 rz/automated_api:latest
volumes:
- name: docker-socket
host:
path: /var/run/docker.sock
trigger:
branch:
- main
event:
- push