Skip to content

Commit

Permalink
[stress] fix broken mirror container image pipeline (#8243)
Browse files Browse the repository at this point in the history
* login using azure cli

* remove bash command

* remove bash command

* remove bash command

* remove bash command
  • Loading branch information
ckairen authored May 10, 2024
1 parent 7ac18c8 commit 6c5a180
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions eng/pipelines/mirror-container-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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:
Expand Down

0 comments on commit 6c5a180

Please sign in to comment.