ci(.drone.yml): 更新 Drone CI 配置文件
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
- 修改步骤名称:将 'clone' 改为 'git-clone',明确步骤目的 - 更新 'working-directory' 为 'working_directory',统一配置格式 - 添加空行,优化配置文件结构 - 保留 volumes 配置,确保 Docker 功能正常
This commit is contained in:
parent
8f2a100c31
commit
c8e83003cd
@ -3,23 +3,26 @@ type: docker
|
||||
name: nodejs-22-docker-ci
|
||||
|
||||
steps:
|
||||
- name: clone
|
||||
- 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
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user