File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " azure-actions-appservice-rest" ,
3- "version" : " 1.3.1 " ,
3+ "version" : " 1.3.2 " ,
44 "description" : " Azure resource manager and kudu node rest module" ,
55 "keywords" : [
66 " appservice" ,
Original file line number Diff line number Diff line change @@ -201,11 +201,14 @@ export class KuduServiceUtility {
201201 public async deployWebAppImage ( appName : string , images : string , isLinux : boolean ) {
202202 try {
203203 core . debug ( `DeployWebAppImage - appName: ${ appName } ; images: ${ images } ; isLinux:${ isLinux } ` ) ;
204- if ( ! isLinux ) {
205- throw new Error ( "Windows Containerized web app is not available for Publish profile auth scheme." ) ;
206- }
207204 console . log ( `Deploying image ${ images } to App Service ${ appName } ` ) ;
208- let headers = { 'LinuxFxVersion' : `DOCKER|${ images } ` } ;
205+
206+ if ( ! images ) {
207+ throw 'The container image to be deployed to App Service is empty.' ;
208+ }
209+
210+ let fxVersionName = isLinux ? 'LinuxFxVersion' : 'WindowsFxVersion' ;
211+ let headers = { fxVersionName : `DOCKER|${ images } ` } ;
209212 await this . _webAppKuduService . imageDeploy ( headers ) ;
210213 console . log ( 'Successfully deployed image to App Service.' ) ;
211214 }
You can’t perform that action at this time.
0 commit comments