Skip to content

Commit

Permalink
Login to ccfmsrc ACR resource with managed identity rather than tok…
Browse files Browse the repository at this point in the history
…en (#6387)
  • Loading branch information
eddyashton authored Jul 23, 2024
1 parent 8b21e9e commit 7f21ef5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .azure-pipelines-templates/deploy_aci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,14 @@ jobs:

- script: |
set -ex
docker login -u $ACR_TOKEN_NAME -p $ACR_CI_PUSH_TOKEN_PASSWORD $ACR_REGISTRY
az acr login --name $ACR_REGISTRY_RESOURCE_NAME
docker pull $BASE_IMAGE
docker build -f docker/ccf_ci_built . --build-arg="base=$BASE_IMAGE" -t $ACR_REGISTRY/ccf/ci:pr-`git rev-parse HEAD`
docker push $ACR_REGISTRY/ccf/ci:pr-`git rev-parse HEAD`
name: build_ci_image
displayName: "Build CI SNP container"
env:
ACR_TOKEN_NAME: ci-push-token
ACR_CI_PUSH_TOKEN_PASSWORD: $(ACR_CI_PUSH_TOKEN_PASSWORD)
ACR_REGISTRY_RESOURCE_NAME: ccfmsrc
ACR_REGISTRY: ccfmsrc.azurecr.io
BASE_IMAGE: ghcr.io/microsoft/ccf/ci/default:build-26-06-2024
Expand Down

0 comments on commit 7f21ef5

Please sign in to comment.