File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
Tasks/ServiceFabricUpdateManifestsV2 Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ function Update-DockerImageSettings
4343 {
4444 throw (Get-VstsLocString - Key InvalidImageDigestValue - ArgumentList @ ($imageDigestValue , $imageDigestsPath ))
4545 }
46+ $imageDigestRepoNameWithRegistry = $imageDigestValue.Substring (0 , $hashSeparatorIndex )
4647 $imageDigestRepoName = $imageDigestValue.Substring ($slashIndex + 1 , $hashSeparatorIndex - $slashIndex - 1 )
4748
4849 if ($imageNames -ne $null )
@@ -67,6 +68,10 @@ function Update-DockerImageSettings
6768 {
6869 throw (Get-VstsLocString - Key AmbiguousImages - ArgumentList @ ($imageName ))
6970 }
71+
72+ if ($imageDigestRepoNameWithRegistry -ne $imageDigestRepoName ){
73+ $imageNameToDigestMapping [$imageDigestRepoNameWithRegistry ] = $imageDigestValue
74+ }
7075 }
7176 $imageNameToDigestMapping [$imageName ] = $imageDigestValue
7277 }
@@ -117,4 +122,4 @@ function Update-DockerImageSettings
117122 } finally {
118123 Trace-VstsLeavingInvocation $MyInvocation
119124 }
120- }
125+ }
Original file line number Diff line number Diff line change 2020 "version" : {
2121 "Major" : 2 ,
2222 "Minor" : 4 ,
23- "Patch" : 4
23+ "Patch" : 5
2424 },
2525 "minimumAgentVersion" : " 1.95.0" ,
2626 "instanceNameFormat" : " Update Service Fabric Manifests ($(updateType))" ,
Original file line number Diff line number Diff line change 2020 "version" : {
2121 "Major" : 2 ,
2222 "Minor" : 4 ,
23- "Patch" : 4
23+ "Patch" : 5
2424 },
2525 "minimumAgentVersion" : " 1.95.0" ,
2626 "instanceNameFormat" : " ms-resource:loc.instanceNameFormat" ,
You can’t perform that action at this time.
0 commit comments