File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed
Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,9 @@ inputs:
2828 resource-group-name :
2929 description : ' Enter the resource group name of the web app'
3030 required : false
31+ sitecontainers-config :
32+ description : ' Applies to Sitecontainers, containes a list of siteContainer specs'
33+ required : false
3134
3235outputs :
3336 webapp-url :
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ const BaseWebAppDeploymentProvider_1 = require("./Providers/BaseWebAppDeployment
66const WebAppContainerDeployment_1 = require ( "./Providers/WebAppContainerDeployment" ) ;
77const WebAppDeploymentProvider_1 = require ( "./Providers/WebAppDeploymentProvider" ) ;
88const PublishProfileWebAppContainerDeploymentProvider_1 = require ( "./Providers/PublishProfileWebAppContainerDeploymentProvider" ) ;
9+ const WebAppSiteContainersDeploymentProvider_1 = require ( "./Providers/WebAppSiteContainersDeploymentProvider" ) ;
910class DeploymentProviderFactory {
1011 static getDeploymentProvider ( type ) {
1112 if ( type === BaseWebAppDeploymentProvider_1 . DEPLOYMENT_PROVIDER_TYPES . PUBLISHPROFILE ) {
@@ -17,6 +18,9 @@ class DeploymentProviderFactory {
1718 }
1819 }
1920 else if ( type == BaseWebAppDeploymentProvider_1 . DEPLOYMENT_PROVIDER_TYPES . SPN ) {
21+ if ( ! ! actionparameters_1 . ActionParameters . getActionParams ( ) . blessedAppSitecontainers || ! ! actionparameters_1 . ActionParameters . getActionParams ( ) . siteContainers ) {
22+ return new WebAppSiteContainersDeploymentProvider_1 . WebAppSiteContainersDeploymentProvider ( type ) ;
23+ }
2024 if ( ! ! actionparameters_1 . ActionParameters . getActionParams ( ) . images || ( ! ! actionparameters_1 . ActionParameters . getActionParams ( ) . isLinux && ! ! actionparameters_1 . ActionParameters . getActionParams ( ) . multiContainerConfigFile ) ) {
2125 return new WebAppContainerDeployment_1 . WebAppContainerDeploymentProvider ( type ) ;
2226 }
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { IWebAppDeploymentProvider } from "./Providers/IWebAppDeploymentProvider
55import { WebAppContainerDeploymentProvider } from "./Providers/WebAppContainerDeployment" ;
66import { WebAppDeploymentProvider } from "./Providers/WebAppDeploymentProvider" ;
77import { PublishProfileWebAppContainerDeploymentProvider } from "./Providers/PublishProfileWebAppContainerDeploymentProvider" ;
8+ import { WebAppSiteContainersDeploymentProvider } from "./Providers/WebAppSiteContainersDeploymentProvider" ;
89
910export class DeploymentProviderFactory {
1011
@@ -18,6 +19,9 @@ export class DeploymentProviderFactory {
1819 }
1920 }
2021 else if ( type == DEPLOYMENT_PROVIDER_TYPES . SPN ) {
22+ if ( ! ! ActionParameters . getActionParams ( ) . blessedAppSitecontainers || ! ! ActionParameters . getActionParams ( ) . siteContainers ) {
23+ return new WebAppSiteContainersDeploymentProvider ( type ) ;
24+ }
2125 if ( ! ! ActionParameters . getActionParams ( ) . images || ( ! ! ActionParameters . getActionParams ( ) . isLinux && ! ! ActionParameters . getActionParams ( ) . multiContainerConfigFile ) ) {
2226 return new WebAppContainerDeploymentProvider ( type ) ;
2327 }
You can’t perform that action at this time.
0 commit comments