This commit is contained in:
parent
29ccfea57a
commit
823007532a
24
.drone.yml
24
.drone.yml
@ -22,18 +22,18 @@ clone:
|
||||
|
||||
steps:
|
||||
#设置缓存
|
||||
- name: clean
|
||||
image: docker
|
||||
privileged: true
|
||||
network_mode: host
|
||||
# 将宿主机的 docker和配置挂载到运行的 docker 容器中,那么在容器中运行 docker 命令时,等同于在宿主机中运行该docker 命令
|
||||
volumes:
|
||||
- name: docker_sock
|
||||
path: /var/run/docker.sock
|
||||
- name: images
|
||||
path: /images
|
||||
- name: docker-daemon
|
||||
path: /etc/docker/daemon.conf
|
||||
# - name: load cache
|
||||
# image: drillster/drone-volume-cache
|
||||
# privileged: true
|
||||
# network_mode: host
|
||||
# # 将宿主机的 docker和配置挂载到运行的 docker 容器中,那么在容器中运行 docker 命令时,等同于在宿主机中运行该docker 命令
|
||||
# volumes:
|
||||
# - name: docker_sock
|
||||
# path: /var/run/docker.sock
|
||||
# - name: images
|
||||
# path: /images
|
||||
# - name: docker-daemon
|
||||
# path: /etc/docker/daemon.conf
|
||||
|
||||
#构建镜像
|
||||
- name: build
|
||||
|
Loading…
Reference in New Issue
Block a user