diff --git a/Jenkinsfile b/Jenkinsfile index a9ca32b..8eac21a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,7 +8,7 @@ pipeline { environment { ACR_USERNAME = 'marcin00' - ACR_PASSWORD = credentials('acr-password-secret-id') + CLIENT_ID = 'c302726f-fafb-4143-94c1-67a70975574a' DOCKER_REGISTRY_URL = 'marcin00.azurecr.io' DOCKER_IMAGE = "${DOCKER_REGISTRY_URL}/user-microservice:${GIT_COMMIT}" } @@ -39,7 +39,7 @@ pipeline { container('docker') { sh ''' docker build -t ${DOCKER_IMAGE} . - az login --identity + az login --identity --client-id ${CLIENT_ID} az acr login --name marcin00 docker push ${DOCKER_IMAGE} '''