Prueba: Usar el Socket de Docker del Host

This commit is contained in:
2025-06-16 12:41:32 -03:00
parent 02265a46e7
commit 55ca8bffa7

View File

@@ -2,6 +2,11 @@ kind: pipeline
type: docker
name: Build y Deploy
volumes:
- name: dockersock
host:
path: /var/run/docker.sock
trigger:
branch:
- main
@@ -11,6 +16,10 @@ trigger:
steps:
- name: build-and-publish-backend
image: plugins/docker
# Añade la sección "volumes" aquí
volumes:
- name: dockersock
path: /var/run/docker.sock
settings:
registry:
from_secret: REGISTRY_URL
@@ -24,10 +33,13 @@ steps:
- latest
- ${DRONE_COMMIT_SHA:0:8}
insecure: true
daemon_mtu: 1450
- name: build-and-publish-frontend
image: plugins/docker
# Añade la sección "volumes" también aquí
volumes:
- name: dockersock
path: /var/run/docker.sock
settings:
registry:
from_secret: REGISTRY_URL
@@ -41,7 +53,6 @@ steps:
- latest
- ${DRONE_COMMIT_SHA:0:8}
insecure: true
daemon_mtu: 1450
depends_on:
- build-and-publish-backend