Skip to content

Commit

Permalink
Deployment: skip store for non-windows
Browse files Browse the repository at this point in the history
  • Loading branch information
webprofusion-chrisc committed Nov 1, 2024
1 parent 1153096 commit 5146b4e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Certify.Core/Management/BindingDeploymentManager.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Security.Cryptography.X509Certificates;
using System.Threading.Tasks;
using Certify.Management;
Expand Down Expand Up @@ -54,6 +55,12 @@ public async Task<List<ActionStep>> StoreAndDeploy(IBindingDeploymentTarget depl
{
var actions = new List<ActionStep>();

if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
actions.Add(new ActionStep { Title = "Certificate Store and Deploy Skipped", Category = "CertificateStorage", Description = "Platform not supported for certificate store, skipping"});
return actions;
}

var requestConfig = managedCertificate.RequestConfig;

if (!isPreviewOnly)
Expand Down

0 comments on commit 5146b4e

Please sign in to comment.