refactoring remote builder

pull/263/head
Frostebite 2021-05-02 04:30:04 +01:00
parent e9a85b886f
commit 2002cc71f9
4 changed files with 29 additions and 1 deletions

View File

@ -140,6 +140,7 @@ Resources:
Environment:
- Name: ALLOW_EMPTY_PASSWORD
Value: 'yes'
# template - env vars
MountPoints:
- SourceVolume: efs-data
ContainerPath: !Ref EFSMountDirectory

13
dist/index.js vendored
View File

@ -1281,6 +1281,19 @@ class AWS {
parameterTemplate,
taskDefCloudFormation.slice(index),
].join('');
const insertionStringKeyContainerDef = 'template - env vars';
const indexContainerDef = taskDefCloudFormation.search(insertionStringKeyContainerDef) +
insertionStringKeyContainerDef.length +
'\n'.length;
const parameterContainerDefTemplate = `
- Name: '${environmentVariable.name}'
ValueFrom: !Ref ${environmentVariable.name}
`;
taskDefCloudFormation = [
taskDefCloudFormation.slice(0, indexContainerDef),
parameterContainerDefTemplate,
taskDefCloudFormation.slice(indexContainerDef),
].join('');
}
core.info(taskDefCloudFormation);
const mappedSecrets = new Array();

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -116,6 +116,20 @@ class AWS {
parameterTemplate,
taskDefCloudFormation.slice(index),
].join('');
const insertionStringKeyContainerDef = 'template - env vars';
const indexContainerDef =
taskDefCloudFormation.search(insertionStringKeyContainerDef) +
insertionStringKeyContainerDef.length +
'\n'.length;
const parameterContainerDefTemplate = `
- Name: '${environmentVariable.name}'
ValueFrom: !Ref ${environmentVariable.name}
`;
taskDefCloudFormation = [
taskDefCloudFormation.slice(0, indexContainerDef),
parameterContainerDefTemplate,
taskDefCloudFormation.slice(indexContainerDef),
].join('');
}
core.info(taskDefCloudFormation);