Skip to content

Commit 5146b4e

Browse files
Deployment: skip store for non-windows
1 parent 1153096 commit 5146b4e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Certify.Core/Management/BindingDeploymentManager.cs

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Linq;
4+
using System.Runtime.InteropServices;
45
using System.Security.Cryptography.X509Certificates;
56
using System.Threading.Tasks;
67
using Certify.Management;
@@ -54,6 +55,12 @@ public async Task<List<ActionStep>> StoreAndDeploy(IBindingDeploymentTarget depl
5455
{
5556
var actions = new List<ActionStep>();
5657

58+
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
59+
{
60+
actions.Add(new ActionStep { Title = "Certificate Store and Deploy Skipped", Category = "CertificateStorage", Description = "Platform not supported for certificate store, skipping"});
61+
return actions;
62+
}
63+
5764
var requestConfig = managedCertificate.RequestConfig;
5865

5966
if (!isPreviewOnly)

0 commit comments

Comments
 (0)