ci(drone): Update Drone pipeline configuration for Docker deployment
Some checks failed
continuous-integration/drone/push Build is failing
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:
parent
8c5676871d
commit
e7c79e1d4a
14
.drone.yml
14
.drone.yml
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user