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