fix: 使用 Docker-in-Docker 模式
Some checks failed
continuous-integration/drone/tag Build is failing

This commit is contained in:
2025-12-17 09:02:24 +08:00
parent c63a0cc5cb
commit 5a75acc4f6

View File

@@ -14,9 +14,7 @@ trigger:
steps:
- name: build-and-push
image: docker:dind
volumes:
- name: dockersock
path: /var/run/docker.sock
privileged: true
environment:
REGISTRY: harbor.seahi.me
IMAGE_NAME: stu/versions-for-swarm
@@ -45,8 +43,3 @@ steps:
- docker push $REGISTRY/$IMAGE_NAME:$VERSION
- docker system prune -f
- echo [SUCCESS] 版本 $VERSION 构建并推送成功
volumes:
- name: dockersock
host:
path: /var/run/docker.sock