running git lfs clone
parent
aa2c75aa96
commit
4b7d6a53de
File diff suppressed because one or more lines are too long
|
|
@ -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,
|
||||||
|
},
|
||||||
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue