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