refactoring remote builder
parent
0777907008
commit
e9a85b886f
|
|
@ -1283,6 +1283,11 @@ class AWS {
|
||||||
].join('');
|
].join('');
|
||||||
}
|
}
|
||||||
core.info(taskDefCloudFormation);
|
core.info(taskDefCloudFormation);
|
||||||
|
const mappedSecrets = new Array();
|
||||||
|
mappedSecrets.push(secrets);
|
||||||
|
mappedSecrets.map((x) => {
|
||||||
|
x.ParameterKey, x.ParameterValue;
|
||||||
|
});
|
||||||
yield CF.createStack({
|
yield CF.createStack({
|
||||||
StackName: taskDefStackName,
|
StackName: taskDefStackName,
|
||||||
TemplateBody: taskDefCloudFormation,
|
TemplateBody: taskDefCloudFormation,
|
||||||
|
|
@ -1315,7 +1320,7 @@ class AWS {
|
||||||
ParameterKey: 'BUILDID',
|
ParameterKey: 'BUILDID',
|
||||||
ParameterValue: buildUid,
|
ParameterValue: buildUid,
|
||||||
},
|
},
|
||||||
...secrets,
|
...mappedSecrets,
|
||||||
],
|
],
|
||||||
}).promise();
|
}).promise();
|
||||||
core.info('Creating worker cluster...');
|
core.info('Creating worker cluster...');
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -119,7 +119,11 @@ class AWS {
|
||||||
}
|
}
|
||||||
|
|
||||||
core.info(taskDefCloudFormation);
|
core.info(taskDefCloudFormation);
|
||||||
|
const mappedSecrets = new Array();
|
||||||
|
mappedSecrets.push(secrets);
|
||||||
|
mappedSecrets.map((x) => {
|
||||||
|
x.ParameterKey, x.ParameterValue;
|
||||||
|
});
|
||||||
await CF.createStack({
|
await CF.createStack({
|
||||||
StackName: taskDefStackName,
|
StackName: taskDefStackName,
|
||||||
TemplateBody: taskDefCloudFormation,
|
TemplateBody: taskDefCloudFormation,
|
||||||
|
|
@ -152,7 +156,7 @@ class AWS {
|
||||||
ParameterKey: 'BUILDID',
|
ParameterKey: 'BUILDID',
|
||||||
ParameterValue: buildUid,
|
ParameterValue: buildUid,
|
||||||
},
|
},
|
||||||
...secrets,
|
...mappedSecrets,
|
||||||
],
|
],
|
||||||
}).promise();
|
}).promise();
|
||||||
core.info('Creating worker cluster...');
|
core.info('Creating worker cluster...');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue