Avoid duplicate Docker socket mount
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
11
.drone.yml
11
.drone.yml
@@ -14,22 +14,11 @@ trigger:
|
||||
steps:
|
||||
- name: build-image
|
||||
image: docker.m.daocloud.io/library/docker:27-cli
|
||||
volumes:
|
||||
- name: dockersock
|
||||
path: /var/run/docker.sock
|
||||
commands:
|
||||
- docker build -t cdchen-frontend:docker .
|
||||
|
||||
- name: deploy
|
||||
image: docker.m.daocloud.io/library/docker:27-cli
|
||||
volumes:
|
||||
- name: dockersock
|
||||
path: /var/run/docker.sock
|
||||
commands:
|
||||
- docker rm -f cdchen-frontend || true
|
||||
- docker run -d --name cdchen-frontend --restart unless-stopped -p 8088:80 cdchen-frontend:docker
|
||||
|
||||
volumes:
|
||||
- name: dockersock
|
||||
host:
|
||||
path: /var/run/docker.sock
|
||||
|
||||
Reference in New Issue
Block a user