volumn
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
liupeng 2024-03-01 15:38:20 +08:00
parent 29ccfea57a
commit 823007532a

View File

@ -22,18 +22,18 @@ clone:
steps: steps:
#设置缓存 #设置缓存
- name: clean # - name: load cache
image: docker # image: drillster/drone-volume-cache
privileged: true # privileged: true
network_mode: host # network_mode: host
# 将宿主机的 docker和配置挂载到运行的 docker 容器中,那么在容器中运行 docker 命令时等同于在宿主机中运行该docker 命令 # # 将宿主机的 docker和配置挂载到运行的 docker 容器中,那么在容器中运行 docker 命令时等同于在宿主机中运行该docker 命令
volumes: # volumes:
- name: docker_sock # - name: docker_sock
path: /var/run/docker.sock # path: /var/run/docker.sock
- name: images # - name: images
path: /images # path: /images
- name: docker-daemon # - name: docker-daemon
path: /etc/docker/daemon.conf # path: /etc/docker/daemon.conf
#构建镜像 #构建镜像
- name: build - name: build