unique task def per job

pull/218/head
Frostebite 2021-02-07 02:14:58 +00:00
parent 7fa2e0b7f7
commit e4e55fb27c
2 changed files with 4 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -32,8 +32,9 @@ class AWS {
const ECS = new SDK.ECS();
const CF = new SDK.CloudFormation();
const alphanumericImageName = image.toString().replace(/[^\da-z]/gi, '');
const taskDefStackName = `${stackName}-taskDef-${alphanumericImageName}-${nanoid()}`;
const taskDefStackName = `${stackName}-taskDef-${image}-${nanoid()}`
.toString()
.replace(/[^\da-z]/gi, '');
core.info("Task Definition doesn't exist, creating a task definition stack");
const taskDefCloudFormation = fs.readFileSync(`${__dirname}/task-def-formation.yml`, 'utf8');
await CF.createStack({