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 4 additions and 0 deletions
Showing only changes of commit 9432b24a19 - Show all commits

4
Jenkinsfile vendored
View File

@ -94,6 +94,10 @@ pipeline {
CREDENTIALS = credentials('docker-registry')
IMAGE = "$REGISTRY/verdnatura/salix-back"
}
script {
def packageJson = readJSON file: 'package.json'
env.VERSION = "${packageJson.version}-build${env.BUILD_ID}"
}
steps {
sh 'docker-compose build back'
sh 'docker login --username $CREDENTIALS_USR --password $CREDENTIALS_PSW $REGISTRY'