ci: 为 Docker 构建步骤添加特权模式
Some checks failed
continuous-integration/drone/push Build is failing

- 在 .drone.yml 文件中的两个 Docker 构建步骤中添加了 privileged: true 配置
- 这可能是因为某些 Docker 构建操作需要更高的权限级别
This commit is contained in:
lixin 2025-01-10 13:27:09 +08:00
parent 6a04d0a46f
commit 1460401f52

View File

@ -14,6 +14,7 @@ steps:
volumes:
- name: docker-socket
path: /var/run/docker.sock
privileged: true
working_directory: automated_api
commands:
- docker build -t rz/automated_api:latest -f Dockerfile .
@ -23,6 +24,7 @@ steps:
volumes:
- name: docker-socket
path: /var/run/docker.sock
privileged: true
commands:
- echo "Checking Docker version"
- docker version