diff --git a/.drone.yml b/.drone.yml index 4e1aaf1..b9d2d64 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,17 +10,16 @@ trigger: steps: - 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: - # 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. + # Esta es la sintaxis correcta que "drone-plugins/kaniko" entiende. 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 context: . - # Las credenciales y la flag de inseguro se mantienen username: from_secret: GITEA_USER password: @@ -28,9 +27,9 @@ steps: insecure: true - name: build-and-publish-frontend - image: gcr.io/kaniko-project/executor:v1.9.0-debug + # --- Y AQUÍ --- + image: drone-plugins/kaniko settings: - # Misma estructura para el frontend repo: 192.168.4.128:5000/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME,,}-frontend tags: - latest @@ -46,7 +45,7 @@ steps: - build-and-publish-backend - name: deploy-to-production - # Este paso no cambia en absoluto + # Este paso nunca fue el problema y no cambia. image: alpine:latest environment: SSH_KEY: