unique task def per job

pull/218/head
Frostebite 2021-02-07 00:43:46 +00:00
parent b64816eed9
commit 17455cc5ea
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -33,7 +33,7 @@ class AWS {
const CF = new SDK.CloudFormation();
const alphanumericImageName = image.toString().replace(/[^\da-z]/gi, '');
const taskDefStackName = `${stackName}-taskDef-${alphanumericImageName}-${new Shortid()}`;
const taskDefStackName = `${stackName}-taskDef-${alphanumericImageName}-${Shortid.generate()}`;
const stackExists =
(await CF.listStacks().promise()).StackSummaries.find(
(x) => x.StackName === taskDefStackName,