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 2 deletions
Showing only changes of commit 566581f8aa - Show all commits

5
Jenkinsfile vendored
View File

@ -91,9 +91,10 @@ pipeline {
} }
stage('Push image') { stage('Push image') {
steps { steps {
sh 'docker-compose build --build-arg BUILD_ID=$BUILD_ID --parallel'
sh 'docker login --username $CREDS_USR --password $CREDS_PSW $REGISTRY' sh 'docker login --username $CREDS_USR --password $CREDS_PSW $REGISTRY'
sh 'docker tag $IMAGE:$TAG $IMAGE:$BRANCH_NAME' // sh 'docker tag $IMAGE:$TAG $IMAGE:$BRANCH_NAME'
sh 'docker push $IMAGE:$BRANCH_NAME' // sh 'docker push $IMAGE:$BRANCH_NAME'
} }
} }
} }