Changed name of variable to store ACR name instead of ACR username

This commit is contained in:
Marcin-Ramotowski 2025-06-10 20:17:25 +00:00
parent 8f9aed299d
commit 1b7204c2ba

4
Jenkinsfile vendored
View File

@ -7,7 +7,7 @@ pipeline {
}
environment {
ACR_USERNAME = 'marcin00'
ACR_NAME = 'marcin00'
CLIENT_ID = 'c302726f-fafb-4143-94c1-67a70975574a'
DOCKER_REGISTRY_URL = 'marcin00.azurecr.io'
DOCKER_IMAGE = "${DOCKER_REGISTRY_URL}/user-microservice:${GIT_COMMIT}"
@ -40,7 +40,7 @@ pipeline {
sh '''
docker build -t ${DOCKER_IMAGE} .
az login --identity --client-id ${CLIENT_ID}
az acr login --name marcin00
az acr login --name ${ACR_NAME}
docker push ${DOCKER_IMAGE}
'''
}