diff --git a/Jenkinsfile b/Jenkinsfile index 0bd268c7a..64a59c7f6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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' } }