cleanup
parent
2d09a57f80
commit
939313c7be
|
|
@ -445,7 +445,9 @@ class AWS {
|
|||
}
|
||||
static setupCloudFormations(CF, buildUid, stackName, image, entrypoint, commands, mountdir, workingdir, secrets) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const taskDefStackName = `${stackName}-taskDef-${image}-${buildUid}`.toString().replace(/[^\da-z]/gi, '');
|
||||
const imageStackName = image.replace(/[^\da-z]/gi, '');
|
||||
const buildUidStackName = buildUid.replace(/[^\da-z]/gi, '');
|
||||
const taskDefStackName = `${stackName}-taskDef-${imageStackName}-${buildUidStackName}`;
|
||||
const taskDefCloudFormation = fs.readFileSync(`${__dirname}/task-def-formation.yml`, 'utf8');
|
||||
yield CF.createStack({
|
||||
StackName: taskDefStackName,
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -299,7 +299,9 @@ class AWS {
|
|||
workingdir,
|
||||
secrets,
|
||||
) {
|
||||
const taskDefStackName = `${stackName}-taskDef-${image}-${buildUid}`.toString().replace(/[^\da-z]/gi, '');
|
||||
const imageStackName = image.replace(/[^\da-z]/gi, '');
|
||||
const buildUidStackName = buildUid.replace(/[^\da-z]/gi, '');
|
||||
const taskDefStackName = `${stackName}-taskDef-${imageStackName}-${buildUidStackName}`;
|
||||
const taskDefCloudFormation = fs.readFileSync(`${__dirname}/task-def-formation.yml`, 'utf8');
|
||||
await CF.createStack({
|
||||
StackName: taskDefStackName,
|
||||
|
|
|
|||
Loading…
Reference in New Issue