Rename remote builder alphbet to constants
parent
3aaea0f6a9
commit
7cf7e37629
|
|
@ -1206,7 +1206,7 @@ const SDK = __importStar(__webpack_require__(71786));
|
|||
const nanoid_1 = __webpack_require__(39140);
|
||||
const fs = __importStar(__webpack_require__(35747));
|
||||
const core = __importStar(__webpack_require__(42186));
|
||||
const remote_builder_alphabet_1 = __importDefault(__webpack_require__(41322));
|
||||
const remote_builder_constants_1 = __importDefault(__webpack_require__(92560));
|
||||
const aws_build_runner_1 = __importDefault(__webpack_require__(11201));
|
||||
class AWSBuildEnvironment {
|
||||
static runBuild(buildId, stackName, image, commands, mountdir, workingdir, environment, secrets) {
|
||||
|
|
@ -1255,7 +1255,7 @@ class AWSBuildEnvironment {
|
|||
}
|
||||
static setupCloudFormations(CF, buildUid, stackName, image, entrypoint, commands, mountdir, workingdir, secrets) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const logid = nanoid_1.customAlphabet(remote_builder_alphabet_1.default.alphabet, 9)();
|
||||
const logid = nanoid_1.customAlphabet(remote_builder_constants_1.default.alphabet, 9)();
|
||||
commands[1] += `
|
||||
echo "${logid}"
|
||||
`;
|
||||
|
|
@ -1568,16 +1568,16 @@ exports.default = AWSBuildRunner;
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 41322:
|
||||
/***/ 92560:
|
||||
/***/ ((__unused_webpack_module, exports) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
class RemoteBuilderAlphabet {
|
||||
class RemoteBuilderConstants {
|
||||
}
|
||||
RemoteBuilderAlphabet.alphabet = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
|
||||
exports.default = RemoteBuilderAlphabet;
|
||||
RemoteBuilderConstants.alphabet = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
|
||||
exports.default = RemoteBuilderConstants;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
|
@ -1622,7 +1622,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|||
const nanoid_1 = __webpack_require__(39140);
|
||||
const aws_build_platform_1 = __importDefault(__webpack_require__(70187));
|
||||
const core = __importStar(__webpack_require__(42186));
|
||||
const remote_builder_alphabet_1 = __importDefault(__webpack_require__(41322));
|
||||
const remote_builder_constants_1 = __importDefault(__webpack_require__(92560));
|
||||
const repositoryDirectoryName = 'repo';
|
||||
const efsDirectoryName = 'data';
|
||||
const cacheDirectoryName = 'cache';
|
||||
|
|
@ -1632,7 +1632,7 @@ class RemoteBuilder {
|
|||
return __awaiter(this, void 0, void 0, function* () {
|
||||
try {
|
||||
this.SteamDeploy = process.env.STEAM_DEPLOY !== '' || false;
|
||||
const nanoid = nanoid_1.customAlphabet(remote_builder_alphabet_1.default.alphabet, 4);
|
||||
const nanoid = nanoid_1.customAlphabet(remote_builder_constants_1.default.alphabet, 4);
|
||||
const buildUid = `${process.env.GITHUB_RUN_NUMBER}-${buildParameters.platform
|
||||
.replace('Standalone', '')
|
||||
.replace('standalone', '')}-${nanoid()}`;
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -5,7 +5,7 @@ import RemoteBuilderEnvironmentVariable from './remote-builder-environment-varia
|
|||
import * as fs from 'fs';
|
||||
import * as core from '@actions/core';
|
||||
import RemoteBuilderTaskDef from './remote-builder-task-def';
|
||||
import RemoteBuilderAlphabet from './remote-builder-alphabet';
|
||||
import RemoteBuilderConstants from './remote-builder-constants';
|
||||
import AWSBuildRunner from './aws-build-runner';
|
||||
|
||||
class AWSBuildEnvironment {
|
||||
|
|
@ -87,7 +87,7 @@ class AWSBuildEnvironment {
|
|||
workingdir: string,
|
||||
secrets: RemoteBuilderSecret[],
|
||||
): Promise<RemoteBuilderTaskDef> {
|
||||
const logid = customAlphabet(RemoteBuilderAlphabet.alphabet, 9)();
|
||||
const logid = customAlphabet(RemoteBuilderConstants.alphabet, 9)();
|
||||
commands[1] += `
|
||||
echo "${logid}"
|
||||
`;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
class RemoteBuilderAlphabet {
|
||||
class RemoteBuilderConstants {
|
||||
static alphabet = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
|
||||
}
|
||||
export default RemoteBuilderAlphabet;
|
||||
export default RemoteBuilderConstants;
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
import { customAlphabet } from 'nanoid';
|
||||
import AWSBuildPlatform from './aws-build-platform';
|
||||
import * as core from '@actions/core';
|
||||
import RemoteBuilderAlphabet from './remote-builder-alphabet';
|
||||
import RemoteBuilderConstants from './remote-builder-constants';
|
||||
import { BuildParameters } from '..';
|
||||
const repositoryDirectoryName = 'repo';
|
||||
const efsDirectoryName = 'data';
|
||||
|
|
@ -12,7 +12,7 @@ class RemoteBuilder {
|
|||
static async build(buildParameters: BuildParameters, baseImage) {
|
||||
try {
|
||||
this.SteamDeploy = process.env.STEAM_DEPLOY !== '' || false;
|
||||
const nanoid = customAlphabet(RemoteBuilderAlphabet.alphabet, 4);
|
||||
const nanoid = customAlphabet(RemoteBuilderConstants.alphabet, 4);
|
||||
const buildUid = `${process.env.GITHUB_RUN_NUMBER}-${buildParameters.platform
|
||||
.replace('Standalone', '')
|
||||
.replace('standalone', '')}-${nanoid()}`;
|
||||
|
|
|
|||
Loading…
Reference in New Issue