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 3 additions and 0 deletions
Showing only changes of commit 6a2292183e - Show all commits

3
Jenkinsfile vendored
View File

@ -90,6 +90,9 @@ pipeline {
} }
} }
stage('Push image') { stage('Push image') {
environment {
CREDENTIALS = credentials('docker-registry')
}
steps { steps {
// sh 'docker-compose build --build-arg BUILD_ID=$BUILD_ID --parallel' // sh 'docker-compose build --build-arg BUILD_ID=$BUILD_ID --parallel'
sh 'docker login --username $CREDENTIALS_USR --password $CREDENTIALS_PSW $REGISTRY' sh 'docker login --username $CREDENTIALS_USR --password $CREDENTIALS_PSW $REGISTRY'