running git lfs clone

pull/218/head
mdugdale 2021-02-14 17:01:48 +00:00
parent aa2c75aa96
commit 4b7d6a53de
2 changed files with 10 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -9,6 +9,7 @@ const zlib = require('zlib');
class AWS { class AWS {
static async runBuildJob(buildParameters, baseImage) { static async runBuildJob(buildParameters, baseImage) {
let buildId = nanoid();
await this.run( await this.run(
buildParameters.awsStackName, buildParameters.awsStackName,
'alpine/git', 'alpine/git',
@ -37,7 +38,7 @@ class AWS {
}, },
{ {
name: 'BUILD_ID', name: 'BUILD_ID',
value: nanoid(), value: buildId,
}, },
], ],
); );
@ -47,13 +48,19 @@ class AWS {
['/bin/sh'], ['/bin/sh'],
['-c', ` ['-c', `
ls; ls;
cd $BUILD_ID;
chmod -R +x /entrypoint.sh; chmod -R +x /entrypoint.sh;
chmod -R +x /steps; chmod -R +x /steps;
/entrypoint.sh; /entrypoint.sh;
`], `],
'/data', '/data',
'/data/repo/', '/data/repo/',
[], [
{
name: 'BUILD_ID',
value: buildId,
},
],
); );
} }