ci(drone): Update Drone pipeline configuration for Docker deployment
Some checks failed
continuous-integration/drone/push Build is failing

- Renamed pipeline from 'nodejs-deploy' to 'automated-api'
- Added Docker-in-Docker (dind) service with privileged mode
- Configured Docker socket volume mounting for build and deploy stages
- Simplified Docker deployment configuration
This commit is contained in:
lixin 2025-01-25 10:45:50 +08:00
parent 8c5676871d
commit e7c79e1d4a

View File

@ -1,6 +1,6 @@
kind: pipeline
type: docker
name: nodejs-deploy
name: automated-api
volumes:
- name: node_modules
@ -10,6 +10,16 @@ volumes:
host:
path: /usr/local/blackend/pnpm_cache
services:
- name: docker
image: docker:dind
privileged: true
environment:
DOCKER_TLS_CERTDIR: ""
volumes:
- name: docker_sock
path: /var/run/docker.sock
steps:
- name: build-docker
image: plugins/docker
@ -23,6 +33,8 @@ steps:
path: /drone/src/node_modules
- name: pnpm_cache
path: /root/.local/share/pnpm/store
- name: docker_sock
path: /var/run/docker.sock
- name: deploy
image: docker:dind