Skip to content

Commit

Permalink
Update eshoponweb-ci-dockercompose.yml
Browse files Browse the repository at this point in the history
Line 53, to parse the json the value to call should be $var.acrloginServer.value

##[debug]script=$var=ConvertFrom-Json '{"**acrLoginServer**":{"type":"String","value":"cr4fusrccm2r62o.azurecr.io"}}'
$value=$var.**loginServer**.value
Write-Host "##vso[task.setvariable variable=acrloginserver;]$value"
echo $acrloginserver
  • Loading branch information
chakra146 authored Jan 5, 2023
1 parent e3778f4 commit 971f73f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .ado/eshoponweb-ci-dockercompose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ stages:
targetType: 'inline'
script: |
$var=ConvertFrom-Json '$(acr-json)'
$value=$var.loginServer.value
$value=$var.acrloginServer.value
Write-Host "##vso[task.setvariable variable=acrloginserver;]$value"
echo $acrloginserver
# docker compose build images
Expand Down

0 comments on commit 971f73f

Please sign in to comment.