Added managed identity client id
This commit is contained in:
parent
6522977280
commit
8f9aed299d
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -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}
|
||||
'''
|
||||
|
Loading…
x
Reference in New Issue
Block a user