ci(.drone.yml): 更新 run-container 步骤并添加 Docker 版本检查
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
- 调整 run-container 步骤的格式和结构 - 添加 Docker 版本检查命令 - 优化日志输出,提高构建过程的可读性
This commit is contained in:
parent
d5e1f2ca24
commit
3f199f4b1f
17
.drone.yml
17
.drone.yml
@ -18,15 +18,16 @@ steps:
|
||||
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:
|
||||
- name: run-container
|
||||
image: docker:latest
|
||||
volumes:
|
||||
- name: docker-socket
|
||||
path: /var/run/docker.sock
|
||||
commands:
|
||||
- echo "Checking Docker version"
|
||||
- docker version
|
||||
- echo "Running container"
|
||||
- docker run -d -p 8001:8001 rz/automated_api:latest
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
|
Loading…
Reference in New Issue
Block a user