hhh338
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
MSI\migue 2025-04-03 09:00:04 -04:00
parent 84af669687
commit 2136a8e35a

View File

@ -64,19 +64,16 @@ steps:
SSH_PASSWORD: "admin123" # O usa SSH_KEY
REGISTRY_ADDRESS: 10.0.0.126:8085
REPOSITORY_NAME: docker-repository # Nombre del repositorio Docker en Nexus
SONAR_URL_TEST: # Mapea el secret a una variable
sonnar_url_test:
from_secret: sonnar_url_test
settings:
host: ${SSH_HOST}
username: ${SSH_USER}
password: ${SSH_PASSWORD} # ⚠️ Recomendado usar secretos en Drone
envs: # Pasa la variable al entorno remoto
- SONAR_URL_TEST
command_timeout: 2m
script:
- echo "Iniciando despliegue..."
#- echo "Imprimiendo secret: $SONAR_URL_TEST" # Se mostrará como ***** por seguridad
#- echo "Secret decodificado: $(echo $SONAR_URL_TEST | base64 -d)"
- echo $sonnar_url_test
- docker login -u yandel -p yandel 10.0.0.126:8085
- docker stop mi-app || true
- docker rm mi-app || true