Changed basic auth to managed identity

This commit is contained in:
Marcin-Ramotowski
2025-06-10 18:50:37 +00:00
parent c707974a2e
commit 6522977280
2 changed files with 3 additions and 10 deletions

3
Jenkinsfile vendored
View File

@ -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}
'''
}