Prueba: Usar el Socket de Docker del Host
This commit is contained in:
15
.drone.yml
15
.drone.yml
@@ -2,6 +2,11 @@ kind: pipeline
|
|||||||
type: docker
|
type: docker
|
||||||
name: Build y Deploy
|
name: Build y Deploy
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: dockersock
|
||||||
|
host:
|
||||||
|
path: /var/run/docker.sock
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
@@ -11,6 +16,10 @@ trigger:
|
|||||||
steps:
|
steps:
|
||||||
- name: build-and-publish-backend
|
- name: build-and-publish-backend
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
|
# Añade la sección "volumes" aquí
|
||||||
|
volumes:
|
||||||
|
- name: dockersock
|
||||||
|
path: /var/run/docker.sock
|
||||||
settings:
|
settings:
|
||||||
registry:
|
registry:
|
||||||
from_secret: REGISTRY_URL
|
from_secret: REGISTRY_URL
|
||||||
@@ -24,10 +33,13 @@ steps:
|
|||||||
- latest
|
- latest
|
||||||
- ${DRONE_COMMIT_SHA:0:8}
|
- ${DRONE_COMMIT_SHA:0:8}
|
||||||
insecure: true
|
insecure: true
|
||||||
daemon_mtu: 1450
|
|
||||||
|
|
||||||
- name: build-and-publish-frontend
|
- name: build-and-publish-frontend
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
|
# Añade la sección "volumes" también aquí
|
||||||
|
volumes:
|
||||||
|
- name: dockersock
|
||||||
|
path: /var/run/docker.sock
|
||||||
settings:
|
settings:
|
||||||
registry:
|
registry:
|
||||||
from_secret: REGISTRY_URL
|
from_secret: REGISTRY_URL
|
||||||
@@ -41,7 +53,6 @@ steps:
|
|||||||
- latest
|
- latest
|
||||||
- ${DRONE_COMMIT_SHA:0:8}
|
- ${DRONE_COMMIT_SHA:0:8}
|
||||||
insecure: true
|
insecure: true
|
||||||
daemon_mtu: 1450
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- build-and-publish-backend
|
- build-and-publish-backend
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user