ci: refs #6695 Jenkinsfile fixes
gitea/salix/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Juan Ferrer 2025-02-17 11:33:56 +01:00
parent 64eefa95f5
commit 7e7ee1ff12
1 changed files with 4 additions and 4 deletions

8
Jenkinsfile vendored
View File

@ -123,12 +123,12 @@ pipeline {
parallel {
stage('Back') {
steps {
docker service: 'back', context: '.'
dockerBuildPush 'back', '.'
}
}
stage('Front') {
steps {
docker service: 'front', context: 'front'
dockerBuildPush 'front', 'front'
}
}
stage('DB') {
@ -138,7 +138,7 @@ pipeline {
sh 'docker commit vn-database vn_db'
sh 'docker stop vn-database'
sh 'docker rm vn-database'
docker service: 'db', context: 'db'
dockerBuildPush 'db', 'db'
}
}
}
@ -250,7 +250,7 @@ pipeline {
}
}
def docker(service, context) {
def dockerBuildPush(service, context) {
def image = "${env.REGISTRY}/salix-${service}"
def versionImage = "${image}:${env.VERSION}"
def branchImage = "${image}:${env.BRANCH_NAME}"