From b52b8455269f659c554f1709ff6123e54e61cbee Mon Sep 17 00:00:00 2001 From: Nana Janashia Date: Sat, 5 Dec 2020 16:07:04 +0100 Subject: [PATCH] fix --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 64bf6c9..0cc0935 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -38,7 +38,7 @@ pipeline { echo "building the docker image..." withCredentials([usernamePassword(credentialsId: 'ecr-credentials', passwordVariable: 'PASS', usernameVariable: 'USER')]) { sh "docker build -t ${IMAGE_REPO}:${IMAGE_NAME} ." - sh "echo $PASS | docker login -u $USER --password-stdin ${IMAGE_REPO}" + sh "echo $PASS | docker login -u $USER --password-stdin ${ECR_REPO_URL}" sh "docker push ${IMAGE_REPO}:${IMAGE_NAME}" } }