File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
eng/common/pipelines/templates/steps Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ parameters:
4
4
- name : ImageId
5
5
type : string
6
6
steps :
7
- - ${{ if ne(parameters.ServiceConnectionName, '' ) }} :
8
7
- task : AzureCLI@2
9
8
displayName : Authenticate to Container Registry
10
9
inputs :
@@ -13,10 +12,7 @@ steps:
13
12
scriptLocation : inlineScript
14
13
inlineScript : |
15
14
# azuresdkimages.azurecr.io/pyrefautocr:latest -> azuresdkimages
16
- $containerRegistryName = ("${{parameters.ImageId}}" -split "\/")[0].Replace(".azurecr.io", "")
15
+ $containerRegistryName = ("${{ parameters.ImageId }}" -split "\/")[0].Replace(".azurecr.io", "")
17
16
18
17
az acr login --name $containerRegistryName
19
-
20
- - pwsh : |
21
- docker pull '${{ parameters.ImageId}}'
22
- displayName : Pull docker image ${{ parameters.ImageId }}
18
+ docker pull '${{ parameters.ImageId }}'
Original file line number Diff line number Diff line change 88
88
- template : /eng/common/pipelines/templates/steps/docker-pull-image.yml
89
89
parameters :
90
90
ServiceConnectionName : azuresdkimages_container-registry
91
- ImageId : " $( DocValidationImageId) "
91
+ ImageId : " ${{ parameters. DocValidationImageId }} "
92
92
- pwsh : |
93
93
$packageInfoJson = '${{ convertToJson(parameters.PackageInfoLocations) }}'.Trim('"').Replace("\\", "/")
94
94
# Without -NoEnumerate, a single element array[T] gets unwrapped as a single item T.
You can’t perform that action at this time.
0 commit comments