Overwrite files when unzipping + correction to secret names

pull/263/head
Frostebite 2021-05-21 23:43:20 +01:00
commit 320a33fa5c
4 changed files with 5 additions and 5 deletions

4
dist/index.js vendored
View File

@ -1239,7 +1239,7 @@ class AWSBuildEnvironment {
const insertionStringContainerSecrets = 'p3 - container def'; const insertionStringContainerSecrets = 'p3 - container def';
const indexp1 = taskDefCloudFormation.search(insertionStringParameters) + insertionStringParameters.length + '\n'.length; const indexp1 = taskDefCloudFormation.search(insertionStringParameters) + insertionStringParameters.length + '\n'.length;
const parameterTemplate = ` const parameterTemplate = `
${secret.ParameterKey}: ${secret.ParameterKey.replace(/[^\dA-Za-z]/g, '')}:
Type: String Type: String
Default: '' Default: ''
`; `;
@ -1883,7 +1883,7 @@ class RemoteBuilder {
echo "Library cache exists from build $latest from ${branchName}" echo "Library cache exists from build $latest from ${branchName}"
echo 'Creating empty Library folder for cache' echo 'Creating empty Library folder for cache'
mkdir "$libDir" mkdir "$libDir"
unzip -q $latest -d '/${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library/.' unzip -q $latest -o -d '/${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library/.'
else else
echo 'Cache does not exist' echo 'Cache does not exist'
fi fi

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -69,7 +69,7 @@ class AWSBuildEnvironment {
const indexp1 = const indexp1 =
taskDefCloudFormation.search(insertionStringParameters) + insertionStringParameters.length + '\n'.length; taskDefCloudFormation.search(insertionStringParameters) + insertionStringParameters.length + '\n'.length;
const parameterTemplate = ` const parameterTemplate = `
${secret.ParameterKey}: ${secret.ParameterKey.replace(/[^\dA-Za-z]/g, '')}:
Type: String Type: String
Default: '' Default: ''
`; `;

View File

@ -324,7 +324,7 @@ class RemoteBuilder {
echo "Library cache exists from build $latest from ${branchName}" echo "Library cache exists from build $latest from ${branchName}"
echo 'Creating empty Library folder for cache' echo 'Creating empty Library folder for cache'
mkdir "$libDir" mkdir "$libDir"
unzip -q $latest -d '/${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library/.' unzip -q $latest -o -d '/${efsDirectoryName}/${buildUid}/${repositoryDirectoryName}/${buildParameters.projectPath}/Library/.'
else else
echo 'Cache does not exist' echo 'Cache does not exist'
fi fi