This commit is contained in:
parent
dfdf9aa2ca
commit
f847e6a95a
|
@ -95,8 +95,7 @@ pipeline {
|
||||||
stage('Push image') {
|
stage('Push image') {
|
||||||
environment {
|
environment {
|
||||||
CREDENTIALS = credentials('docker-registry')
|
CREDENTIALS = credentials('docker-registry')
|
||||||
E2E_VERSION = "e2e-try"
|
IMAGE = "$REGISTRY/verdnatura/salix-back"
|
||||||
IMAGE = "$REGISTRY/verdnatura/salix-back:$E2E_VERSION"
|
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
|
@ -106,6 +105,7 @@ pipeline {
|
||||||
sh 'docker-compose build back'
|
sh 'docker-compose build back'
|
||||||
sh 'docker images'
|
sh 'docker images'
|
||||||
sh 'docker login --username $CREDENTIALS_USR --password $CREDENTIALS_PSW $REGISTRY'
|
sh 'docker login --username $CREDENTIALS_USR --password $CREDENTIALS_PSW $REGISTRY'
|
||||||
|
sh 'docker tag back:e2e-try $IMAGE:$BRANCH_NAME'
|
||||||
sh 'docker push $IMAGE:$BRANCH_NAME'
|
sh 'docker push $IMAGE:$BRANCH_NAME'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue