-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish profile support for container web apps (#39)
* adding publish profile support for container apps * added node modules * removed unit test file * Update action.yml * Update README.md * Update README.md
- Loading branch information
Showing
26 changed files
with
444 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
lib/ActionInputValidator/ActionValidators/PublishProfileContainerWebAppValidator.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const Validations_1 = require("../Validations"); | ||
const actionparameters_1 = require("../../actionparameters"); | ||
class PublishProfileContainerWebAppValidator { | ||
validate() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const actionParams = actionparameters_1.ActionParameters.getActionParams(); | ||
Validations_1.packageNotAllowed(actionParams.packageInput); | ||
yield Validations_1.windowsContainerAppNotAllowedForPublishProfile(); | ||
Validations_1.multiContainerNotAllowed(actionParams.multiContainerConfigFile); | ||
Validations_1.startupCommandNotAllowed(actionParams.startupCommand); | ||
Validations_1.validateAppDetails(); | ||
Validations_1.validateSingleContainerInputs(); | ||
}); | ||
} | ||
} | ||
exports.PublishProfileContainerWebAppValidator = PublishProfileContainerWebAppValidator; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
lib/DeploymentProvider/Providers/PublishProfileWebAppContainerDeploymentProvider.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const BaseWebAppDeploymentProvider_1 = require("./BaseWebAppDeploymentProvider"); | ||
class PublishProfileWebAppContainerDeploymentProvider extends BaseWebAppDeploymentProvider_1.BaseWebAppDeploymentProvider { | ||
DeployWebAppStep() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const appName = this.actionParams.appName; | ||
const images = this.actionParams.images; | ||
const isLinux = this.actionParams.isLinux; | ||
yield this.kuduServiceUtility.deployWebAppImage(appName, images, isLinux); | ||
}); | ||
} | ||
} | ||
exports.PublishProfileWebAppContainerDeploymentProvider = PublishProfileWebAppContainerDeploymentProvider; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
class RuntimeConstants { | ||
} | ||
exports.default = RuntimeConstants; | ||
RuntimeConstants.system = "system"; | ||
RuntimeConstants.osName = "os_name"; | ||
RuntimeConstants.Windows = "Windows"; | ||
RuntimeConstants.Unix = "Unix"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.