unique task def per job
parent
7fa2e0b7f7
commit
e4e55fb27c
File diff suppressed because one or more lines are too long
|
|
@ -32,8 +32,9 @@ class AWS {
|
||||||
const ECS = new SDK.ECS();
|
const ECS = new SDK.ECS();
|
||||||
const CF = new SDK.CloudFormation();
|
const CF = new SDK.CloudFormation();
|
||||||
|
|
||||||
const alphanumericImageName = image.toString().replace(/[^\da-z]/gi, '');
|
const taskDefStackName = `${stackName}-taskDef-${image}-${nanoid()}`
|
||||||
const taskDefStackName = `${stackName}-taskDef-${alphanumericImageName}-${nanoid()}`;
|
.toString()
|
||||||
|
.replace(/[^\da-z]/gi, '');
|
||||||
core.info("Task Definition doesn't exist, creating a task definition stack");
|
core.info("Task Definition doesn't exist, creating a task definition stack");
|
||||||
const taskDefCloudFormation = fs.readFileSync(`${__dirname}/task-def-formation.yml`, 'utf8');
|
const taskDefCloudFormation = fs.readFileSync(`${__dirname}/task-def-formation.yml`, 'utf8');
|
||||||
await CF.createStack({
|
await CF.createStack({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue