8713-testToMaster #3523

Merged
alexm merged 383 commits from 8713-testToMaster into master 2025-03-04 06:52:15 +00:00
1 changed files with 7 additions and 6 deletions
Showing only changes of commit 40ed75450d - Show all commits

13
Jenkinsfile vendored
View File

@ -120,13 +120,13 @@ pipeline {
parallel {
stage('Back') {
steps {
dockerBuildPush 'back', '.', 'back/Dockerfile'
dockerBuildPush 'salix-back', '.', 'back/Dockerfile'
}
}
stage('Front') {
steps {
sh 'gulp build'
dockerBuildPush 'front', 'front'
dockerBuildPush 'salix-front', 'front'
}
}
stage('DB') {
@ -136,7 +136,8 @@ pipeline {
sh 'docker commit vn-database vn_db'
sh 'docker stop vn-database'
sh 'docker rm vn-database'
dockerBuildPush 'db', 'db'
dockerBuildPush 'salix-db', 'db'
}
}
}
@ -248,13 +249,13 @@ pipeline {
}
}
def dockerBuildPush(service, context, dockerfile = null) {
def dockerBuildPush(imageName, context, dockerfile = null) {
if (dockerfile == null)
dockerfile = "${context}/Dockerfile"
docker.withRegistry("https://${env.REGISTRY}", 'docker-registry') {
def imageName = "salix-${service}:${env.VERSION}"
def image = docker.build(imageName, "-f ${dockerfile} ${context}")
def baseImage = "${imageName}:${env.VERSION}"
def image = docker.build(baseImage, "-f ${dockerfile} ${context}")
image.push()
image.push(env.BRANCH_NAME)
if (IS_LATEST) image.push('latest')