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 1 additions and 6 deletions
Showing only changes of commit 9a37e52bf7 - Show all commits

7
Jenkinsfile vendored
View File

@ -94,13 +94,8 @@ pipeline {
CREDENTIALS = credentials('docker-registry') CREDENTIALS = credentials('docker-registry')
} }
steps { steps {
// 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'
sh 'echo $IMAGE' sh 'docker push $IMAGE:$BRANCH_NAME'
sh 'echo $TAG'
sh 'echo $BRANCH_NAME'
sh 'docker tag $IMAGE:$TAG $IMAGE:$BRANCH_NAME'
// sh 'docker push $IMAGE:$BRANCH_NAME'
} }
} }
} }