WIP: feat: jenkins push docker imagen by branch #2763

Draft
alexm wants to merge 53 commits from 6695-docker_push into dev
1 changed files with 9 additions and 9 deletions
Showing only changes of commit 72eceb685c - Show all commits

18
Jenkinsfile vendored
View File

@ -98,15 +98,15 @@ pipeline {
IMAGE = "$REGISTRY/salix-back"
}
steps {
script {
def packageJson = readJSON file: 'package.json'
env.VERSION = "e2e-try"
}
sh 'docker-compose build back'
// sh 'docker images'
sh 'docker login --username $CREDENTIALS_USR --password $CREDENTIALS_PSW $REGISTRY'
sh 'docker tag $IMAGE:$VERSION $IMAGE:$BRANCH_NAME'
sh 'docker push $IMAGE:$BRANCH_NAME'
// script {
// def packageJson = readJSON file: 'package.json'
// env.VERSION = "e2e-try"
// }
// sh 'docker-compose build back'
// sh 'docker login --username $CREDENTIALS_USR --password $CREDENTIALS_PSW $REGISTRY'
// sh 'docker tag $IMAGE:$VERSION $IMAGE:$BRANCH_NAME'
// sh 'docker push $IMAGE:$BRANCH_NAME'
sh '$GIT_BRANCH'
}
}
stage('Stack') {