Skip to content

Commit 6299870

Browse files
authored
Fix setting FxVersion headers by using constant (#46)
* Support deploying Windows container images. * Check images string is not empty. * Updated package version. * Use constant when setting headers.
1 parent 007a208 commit 6299870

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/appservice-rest/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "azure-actions-appservice-rest",
3-
"version": "1.3.2",
3+
"version": "1.3.3",
44
"description": "Azure resource manager and kudu node rest module",
55
"keywords": [
66
"appservice",

packages/appservice-rest/src/Utilities/KuduServiceUtility.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,7 @@ export class KuduServiceUtility {
207207
throw 'The container image to be deployed to App Service is empty.';
208208
}
209209

210-
let fxVersionName = isLinux ? 'LinuxFxVersion' : 'WindowsFxVersion';
211-
let headers = {fxVersionName: `DOCKER|${images}`};
210+
let headers = isLinux ? { 'LinuxFxVersion': `DOCKER|${images}` } : { 'WindowsFxVersion': `DOCKER|${images}` };
212211
await this._webAppKuduService.imageDeploy(headers);
213212
console.log('Successfully deployed image to App Service.');
214213
}

0 commit comments

Comments
 (0)