@ivoryio/ivory-cli
Version:
16 lines (15 loc) • 650 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.deployInfrastructure = void 0;
var shelljs_1 = __importDefault(require("shelljs"));
exports.deployInfrastructure = function (_a) {
var repositoryInfo = _a.repositoryInfo;
var env = '';
if (repositoryInfo.platform === 'github') {
env = "GITHUB_SECRET=" + repositoryInfo.repoSecret;
}
shelljs_1.default.exec("cd infrastructure && " + env + " yarn deploy --require-approval never --color always");
};