This commit is contained in:
2025-06-16 18:52:48 -03:00
parent d8dc41222c
commit 856d7ac5c1

View File

@@ -10,17 +10,16 @@ trigger:
steps: steps:
- name: build-and-publish-backend - name: build-and-publish-backend
image: gcr.io/kaniko-project/executor:v1.9.0-debug # --- ¡¡EL CAMBIO CLAVE Y DEFINITIVO ESTÁ AQUÍ!! ---
image: drone-plugins/kaniko
settings: settings:
# El nombre del campo debe ser "repo" para el destino principal, # Esta es la sintaxis correcta que "drone-plugins/kaniko" entiende.
# 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 repo: 192.168.4.128:5000/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME,,}-backend
tags: tags:
- latest - latest
- ${DRONE_COMMIT_SHA:0:8} - ${DRONE_COMMIT_SHA:0:8}
dockerfile: Backend/GestionIntegral.Api/Dockerfile dockerfile: Backend/GestionIntegral.Api/Dockerfile
context: . context: .
# Las credenciales y la flag de inseguro se mantienen
username: username:
from_secret: GITEA_USER from_secret: GITEA_USER
password: password:
@@ -28,9 +27,9 @@ steps:
insecure: true insecure: true
- name: build-and-publish-frontend - name: build-and-publish-frontend
image: gcr.io/kaniko-project/executor:v1.9.0-debug # --- Y AQUÍ ---
image: drone-plugins/kaniko
settings: settings:
# Misma estructura para el frontend
repo: 192.168.4.128:5000/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME,,}-frontend repo: 192.168.4.128:5000/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME,,}-frontend
tags: tags:
- latest - latest
@@ -46,7 +45,7 @@ steps:
- build-and-publish-backend - build-and-publish-backend
- name: deploy-to-production - name: deploy-to-production
# Este paso no cambia en absoluto # Este paso nunca fue el problema y no cambia.
image: alpine:latest image: alpine:latest
environment: environment:
SSH_KEY: SSH_KEY: