Changed name of variable to store ACR name instead of ACR username
This commit is contained in:
parent
8f9aed299d
commit
1b7204c2ba
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -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}
|
||||
'''
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user