We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b865382 commit 1176144Copy full SHA for 1176144
Build.Docker.ps1
@@ -50,6 +50,20 @@ function Publish-DockerImage($arch)
50
$ErrorActionPreference = "Stop"
51
}
52
53
+function Publish-DockerManifest($archs)
54
+{
55
+ $images = ""
56
+ foreach ($arch in $archs) {
57
+ $images += "$image-ci:$version-$($arch.rid) "
58
+ }
59
+
60
+ invoke-expression "docker manifest create $image-ci:$version $images"
61
+ if ($LASTEXITCODE) { exit 4 }
62
63
+ docker manifest push $image-ci:$version
64
65
+}
66
67
Push-Location $PSScriptRoot
68
69
Execute-Tests
@@ -62,4 +76,8 @@ foreach ($arch in $archs) {
76
77
78
79
+if ($IsPublishedBuild) {
80
+ Publish-DockerManifest($archs)
81
82
83
Pop-Location
0 commit comments