From 79e4d910eace1a33ddd3fc5a23f16f8fba42e913 Mon Sep 17 00:00:00 2001 From: Tom Deseyn Date: Thu, 15 Jun 2023 16:19:53 +0200 Subject: [PATCH] Containers: add mappings for s390x and ppc64le platform architectures to corresponding rids. --- src/Containers/Microsoft.NET.Build.Containers/Registry.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Containers/Microsoft.NET.Build.Containers/Registry.cs b/src/Containers/Microsoft.NET.Build.Containers/Registry.cs index 5c74a4163f07..84fd55680195 100644 --- a/src/Containers/Microsoft.NET.Build.Containers/Registry.cs +++ b/src/Containers/Microsoft.NET.Build.Containers/Registry.cs @@ -264,8 +264,6 @@ private async Task GetBlobAsync(string repositoryName, stri private static string? CreateRidForPlatform(PlatformInformation platform) { // we only support linux and windows containers explicitly, so anything else we should skip past. - // there are theoretically other platforms/architectures that Docker supports (s390x?), but we are - // deliberately ignoring them without clear user signal. var osPart = platform.os switch { "linux" => "linux", @@ -285,6 +283,8 @@ private async Task GetBlobAsync(string repositoryName, stri "x386" => "x86", "arm" => $"arm{(platform.variant != "v7" ? platform.variant : "")}", "arm64" => "arm64", + "ppc64le" => "ppc64le", + "s390x" => "s390x", _ => null };