diff --git a/Jenkinsfile b/Jenkinsfile index d3379b19f..285906b8f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -47,7 +47,7 @@ pipeline { STACK_NAME = "${env.PROJECT_NAME}-${env.BRANCH_NAME}" } stages { - stage('Install') { + stage('Stack') { environment { NODE_ENV = "" TZ = 'Europe/Madrid' @@ -130,7 +130,7 @@ pipeline { }} } } - stage('Build') { + stage('Push') { when { expression { RUN_BUILD } } @@ -142,7 +142,8 @@ pipeline { def packageJson = readJSON file: 'package.json' env.VERSION = packageJson.version } - dockerBuild() + sh 'docker login --username $CREDENTIALS_USR --password $CREDENTIALS_PSW $REGISTRY' + sh 'docker-compose push' } } stage('Deploy') {