automated_api/.drone.yml
lixin c8e83003cd
Some checks reported errors
continuous-integration/drone/push Build encountered an error
ci(.drone.yml): 更新 Drone CI 配置文件
- 修改步骤名称:将 'clone' 改为 'git-clone',明确步骤目的
- 更新 'working-directory' 为 'working_directory',统一配置格式
- 添加空行,优化配置文件结构
- 保留 volumes 配置,确保 Docker 功能正常
2025-01-10 12:28:17 +08:00

35 lines
704 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