Fix yml
This commit is contained in:
25
.drone.yml
25
.drone.yml
@@ -10,32 +10,31 @@ trigger:
|
||||
|
||||
steps:
|
||||
- name: build-and-publish-backend
|
||||
# Cambiamos la imagen a Kaniko
|
||||
image: gcr.io/kaniko-project/executor:v1.9.0-debug
|
||||
settings:
|
||||
# El destino final de la imagen, incluyendo el registro y la primera tag
|
||||
destination: 192.168.4.128:5000/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME,,}-backend:latest
|
||||
# Para añadir más tags, las ponemos en una lista aquí
|
||||
destinations:
|
||||
- 192.168.4.128:5000/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME,,}-backend:${DRONE_COMMIT_SHA:0:8}
|
||||
# El Dockerfile que se va a usar
|
||||
# El nombre del campo debe ser "repo" para el destino principal,
|
||||
# y "tags" para las adicionales. El plugin de Drone lo traduce internamente para Kaniko.
|
||||
repo: 192.168.4.128:5000/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME,,}-backend
|
||||
tags:
|
||||
- latest
|
||||
- ${DRONE_COMMIT_SHA:0:8}
|
||||
dockerfile: Backend/GestionIntegral.Api/Dockerfile
|
||||
# El contexto de la construcción (la raíz del repo)
|
||||
context: .
|
||||
# Credenciales para el registro (Kaniko las usa para el push)
|
||||
# Las credenciales y la flag de inseguro se mantienen
|
||||
username:
|
||||
from_secret: GITEA_USER
|
||||
password:
|
||||
from_secret: ACTIONS_PAT
|
||||
# Flag para permitir la conexión a un registro inseguro (HTTP)
|
||||
insecure: true
|
||||
|
||||
- name: build-and-publish-frontend
|
||||
image: gcr.io/kaniko-project/executor:v1.9.0-debug
|
||||
settings:
|
||||
destination: 192.168.4.128:5000/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME,,}-frontend:latest
|
||||
destinations:
|
||||
- 192.168.4.128:5000/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME,,}-frontend:${DRONE_COMMIT_SHA:0:8}
|
||||
# Misma estructura para el frontend
|
||||
repo: 192.168.4.128:5000/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME,,}-frontend
|
||||
tags:
|
||||
- latest
|
||||
- ${DRONE_COMMIT_SHA:0:8}
|
||||
dockerfile: Frontend/Dockerfile
|
||||
context: .
|
||||
username:
|
||||
|
||||
Reference in New Issue
Block a user