Merge pull request 'Update Jenkinsfile' (#8) from pre-dev into dev
Reviewed-on: https://gitea.185.187.169.109.nip.io/Proyecto-SaaS/django-core-base/pulls/8
This commit is contained in:
11
deployments/Jenkinsfile
vendored
11
deployments/Jenkinsfile
vendored
@@ -26,10 +26,15 @@ pipeline {
|
|||||||
anyOf { branch 'dev'; branch 'master' }
|
anyOf { branch 'dev'; branch 'master' }
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
// Verificamos que ya NO sale "null"
|
echo "EJECUTANDO DOCKER: ${env.CONTAINER_NAME} en el puerto ${env.PORT}"
|
||||||
echo "DESPLEGANDO: ${env.CONTAINER_NAME} en puerto ${env.PORT}"
|
|
||||||
|
|
||||||
sh "docker compose -f deployments/docker-compose.yml up -d --build"
|
// Forzamos a Docker a leer las variables y usamos un nombre de proyecto fijo (-p)
|
||||||
|
sh """
|
||||||
|
CONTAINER_NAME=${env.CONTAINER_NAME} \
|
||||||
|
PORT=${env.PORT} \
|
||||||
|
DEBUG_MODE=${env.DEBUG_MODE} \
|
||||||
|
docker compose -p django_bac -f deployments/docker-compose.yml up -d --build
|
||||||
|
"""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user