Avoid duplicate Docker socket mount
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
2026-06-20 00:13:17 +08:00
parent a8f8f36d00
commit 6aeafa3f69

View File

@@ -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-backend: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-backend || true
- docker run -d --name cdchen-backend --restart unless-stopped -p 8089:8080 cdchen-backend:docker
volumes:
- name: dockersock
host:
path: /var/run/docker.sock