From 85a804001fc5384100103173af6017864ba60b04 Mon Sep 17 00:00:00 2001 From: alexm Date: Wed, 25 Sep 2024 14:17:01 +0200 Subject: [PATCH] feat: refs #6695 try up db --- Jenkinsfile | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 91be940b2..7130d95aa 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -186,27 +186,27 @@ pipeline { } } } - // stage('Push') { - // when { - // expression { RUN_BUILD } - // } - // environment { - // CREDENTIALS = credentials('docker-registry') - // } - // steps { - // script { - // def packageJson = readJSON file: 'package.json' - // env.VERSION = "${packageJson.version}-build${env.BUILD_ID}" - // } - // sh 'docker login --username $CREDENTIALS_USR --password $CREDENTIALS_PSW $REGISTRY' - // sh 'docker-compose push' - // script { - // if (env.BRANCH_NAME == 'master') { - // sh 'docker tag $IMAGE:$TAG $IMAGE:latest' - // sh 'docker push $IMAGE:latest' - // } - // } - // } + stage('Push') { + when { + expression { RUN_BUILD } + } + environment { + CREDENTIALS = credentials('docker-registry') + } + steps { + script { + def packageJson = readJSON file: 'package.json' + env.VERSION = "${packageJson.version}-build${env.BUILD_ID}" + } + sh 'docker login --username $CREDENTIALS_USR --password $CREDENTIALS_PSW $REGISTRY' + sh 'docker-compose push' + script { + if (env.BRANCH_NAME == 'master') { + sh 'docker tag $IMAGE:$TAG $IMAGE:latest' + sh 'docker push $IMAGE:latest' + } + } + } } stage('Deploy') { when {