Changed basic auth to managed identity
This commit is contained in:
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@ -39,7 +39,8 @@ pipeline {
|
||||
container('docker') {
|
||||
sh '''
|
||||
docker build -t ${DOCKER_IMAGE} .
|
||||
echo "${ACR_PASSWORD}" | docker login marcin00.azurecr.io -u ${ACR_USERNAME} --password-stdin
|
||||
az login --identity
|
||||
az acr login --name marcin00
|
||||
docker push ${DOCKER_IMAGE}
|
||||
'''
|
||||
}
|
||||
|
Reference in New Issue
Block a user