From 4d4944238e9d2e083e463313e92dc0cca302a2d9 Mon Sep 17 00:00:00 2001 From: alexm Date: Fri, 19 Jul 2024 14:12:12 +0200 Subject: [PATCH] test --- Jenkinsfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 395a6cbda..dadeb5b00 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -92,10 +92,12 @@ pipeline { stage('Push image') { environment { CREDENTIALS = credentials('docker-registry') + IMAGE = "$REGISTRY/verdnatura/salix-back" } steps { - sh 'docker login --username $CREDENTIALS_USR --password $CREDENTIALS_PSW $REGISTRY' - sh 'docker push salix-back:$BRANCH_NAME' + sh 'docker-compose build --build-arg BUILD_ID=$BUILD_ID --parallel' + sh 'docker login --username $CREDS_USR --password $CREDS_PSW $REGISTRY' + sh 'docker push $IMAGE:$BRANCH_NAME' } } }