cleanup
parent
4590fdecdb
commit
ad575382e6
|
|
@ -225,6 +225,7 @@ class AWS {
|
|||
return __awaiter(this, void 0, void 0, function* () {
|
||||
try {
|
||||
const buildUid = nanoid_1.nanoid();
|
||||
core.info("starting part 1/4 (clone from github and restore cache)");
|
||||
yield this.run(buildUid, buildParameters.awsStackName, 'alpine/git', ['/bin/sh'], [
|
||||
'-c',
|
||||
`apk update;
|
||||
|
|
@ -269,6 +270,7 @@ class AWS {
|
|||
ParameterValue: buildParameters.githubToken,
|
||||
},
|
||||
]);
|
||||
core.info("starting part 2/4 (build)");
|
||||
yield this.run(buildUid, buildParameters.awsStackName, baseImage.toString(), ['/bin/sh'], [
|
||||
'-c',
|
||||
`
|
||||
|
|
@ -360,6 +362,7 @@ class AWS {
|
|||
ParameterValue: buildParameters.androidKeyaliasPass ? buildParameters.androidKeyaliasPass : '0',
|
||||
},
|
||||
]);
|
||||
core.info("starting part 3/4 (zip and publish latest Library to cache)");
|
||||
// Cleanup
|
||||
yield this.run(buildUid, buildParameters.awsStackName, 'alpine', ['/bin/sh'], [
|
||||
'-c',
|
||||
|
|
@ -381,6 +384,7 @@ class AWS {
|
|||
ParameterValue: buildParameters.githubToken,
|
||||
},
|
||||
]);
|
||||
core.info("starting part 4/4 (upload to s3)");
|
||||
yield this.run(buildUid, buildParameters.awsStackName, 'amazon/aws-cli', ['/bin/sh'], [
|
||||
'-c',
|
||||
`
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -8,6 +8,8 @@ class AWS {
|
|||
static async runBuildJob(buildParameters, baseImage) {
|
||||
try {
|
||||
const buildUid = nanoid();
|
||||
|
||||
core.info("starting part 1/4 (clone from github and restore cache)");
|
||||
await this.run(
|
||||
buildUid,
|
||||
buildParameters.awsStackName,
|
||||
|
|
@ -62,6 +64,8 @@ class AWS {
|
|||
},
|
||||
],
|
||||
);
|
||||
|
||||
core.info("starting part 2/4 (build)");
|
||||
await this.run(
|
||||
buildUid,
|
||||
buildParameters.awsStackName,
|
||||
|
|
@ -163,6 +167,7 @@ class AWS {
|
|||
},
|
||||
],
|
||||
);
|
||||
core.info("starting part 3/4 (zip and publish latest Library to cache)");
|
||||
// Cleanup
|
||||
await this.run(
|
||||
buildUid,
|
||||
|
|
@ -194,6 +199,8 @@ class AWS {
|
|||
},
|
||||
],
|
||||
);
|
||||
|
||||
core.info("starting part 4/4 (upload to s3)");
|
||||
await this.run(
|
||||
buildUid,
|
||||
buildParameters.awsStackName,
|
||||
|
|
|
|||
Loading…
Reference in New Issue