From 6c5a180edc0b1bfcd044e24ee404eb6b72912729 Mon Sep 17 00:00:00 2001 From: Albert Cheng <38804567+ckairen@users.noreply.github.com> Date: Fri, 10 May 2024 14:07:12 -0700 Subject: [PATCH] [stress] fix broken mirror container image pipeline (#8243) * login using azure cli * remove bash command * remove bash command * remove bash command * remove bash command --- eng/pipelines/mirror-container-images.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/eng/pipelines/mirror-container-images.yml b/eng/pipelines/mirror-container-images.yml index 8748229ac06..38c668c7710 100644 --- a/eng/pipelines/mirror-container-images.yml +++ b/eng/pipelines/mirror-container-images.yml @@ -10,7 +10,7 @@ parameters: changes: bash -c "apt update -y && apt upgrade -y" - source: ghcr.io/chaos-mesh/chaos-mesh:v2.6.3 mirror: azsdkengsys.azurecr.io/mirror/chaos-mesh/chaos-mesh:v2.6.3 - changes: bash -c "apk update && apk upgrade" + changes: sh -c "apk update && apk upgrade" - source: ghcr.io/chaos-mesh/chaos-dashboard:v2.6.3 mirror: azsdkengsys.azurecr.io/mirror/chaos-mesh/chaos-dashboard:v2.6.3 changes: bash -c "apt update -y && apt upgrade -y" @@ -36,11 +36,14 @@ extends: steps: - ${{ each image in parameters.Images }}: - - task: Docker@2 + - task: AzureCLI@2 displayName: Login to ${{ split(image.mirror, '.')[0] }} inputs: - command: login - containerRegistry: ${{ split(image.mirror, '.')[0] }} + azureSubscription: "Azure SDK Engineering System" + scriptType: pscore + scriptLocation: inlineScript + inlineScript: | + az acr login --name ${{ split(image.mirror, '.')[0] }} - task: Powershell@2 displayName: Mirror ${{ image.source }} to ${{ image.mirror }} inputs: