Skip to content

Commit 6c5a180

Browse files
authored
[stress] fix broken mirror container image pipeline (#8243)
* login using azure cli * remove bash command * remove bash command * remove bash command * remove bash command
1 parent 7ac18c8 commit 6c5a180

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

eng/pipelines/mirror-container-images.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ parameters:
1010
changes: bash -c "apt update -y && apt upgrade -y"
1111
- source: ghcr.io/chaos-mesh/chaos-mesh:v2.6.3
1212
mirror: azsdkengsys.azurecr.io/mirror/chaos-mesh/chaos-mesh:v2.6.3
13-
changes: bash -c "apk update && apk upgrade"
13+
changes: sh -c "apk update && apk upgrade"
1414
- source: ghcr.io/chaos-mesh/chaos-dashboard:v2.6.3
1515
mirror: azsdkengsys.azurecr.io/mirror/chaos-mesh/chaos-dashboard:v2.6.3
1616
changes: bash -c "apt update -y && apt upgrade -y"
@@ -36,11 +36,14 @@ extends:
3636

3737
steps:
3838
- ${{ each image in parameters.Images }}:
39-
- task: Docker@2
39+
- task: AzureCLI@2
4040
displayName: Login to ${{ split(image.mirror, '.')[0] }}
4141
inputs:
42-
command: login
43-
containerRegistry: ${{ split(image.mirror, '.')[0] }}
42+
azureSubscription: "Azure SDK Engineering System"
43+
scriptType: pscore
44+
scriptLocation: inlineScript
45+
inlineScript: |
46+
az acr login --name ${{ split(image.mirror, '.')[0] }}
4447
- task: Powershell@2
4548
displayName: Mirror ${{ image.source }} to ${{ image.mirror }}
4649
inputs:

0 commit comments

Comments
 (0)