pull/235/head
mdugdale 2021-04-03 00:32:33 +01:00
parent a7eda598a7
commit 7820d94f1f
3 changed files with 3 additions and 53 deletions

22
dist/index.js vendored
View File

@ -242,26 +242,6 @@ class AWS {
fi
cd ${buildUid}/repo;
git checkout $GITHUB_SHA;
`,
], '/data', '/data/', [
{
name: 'GITHUB_SHA',
value: process.env.GITHUB_SHA,
},
], [
{
ParameterKey: 'GithubToken',
ParameterValue: buildParameters.githubToken,
},
]);
// Unzip
yield this.run(buildUid, buildParameters.awsStackName, 'alpine', ['/bin/sh'], [
'-c',
`
apk update;
apk add zip
zip -r /${process.env.GITHUB_REF}/lib.zip ./${buildUid}/repo/Library/.
ls
`,
], '/data', '/data/', [
{
@ -389,7 +369,7 @@ class AWS {
yield this.run(buildUid, buildParameters.awsStackName, 'amazon/aws-cli', ['/bin/sh'], [
'-c',
`
aws s3 cp ./${buildUid}/output.zip s3://game-ci-storage/${buildUid}
aws s3 cp ./${buildUid}/output.zip s3://game-ci-storage/${buildUid}.zip
rm -r ${buildUid}
ls
`,

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -47,36 +47,6 @@ class AWS {
},
],
);
// Unzip
await this.run(
buildUid,
buildParameters.awsStackName,
'alpine',
['/bin/sh'],
[
'-c',
`
apk update;
apk add zip
zip -r /${process.env.GITHUB_REF}/lib.zip ./${buildUid}/repo/Library/.
ls
`,
],
'/data',
'/data/',
[
{
name: 'GITHUB_SHA',
value: process.env.GITHUB_SHA,
},
],
[
{
ParameterKey: 'GithubToken',
ParameterValue: buildParameters.githubToken,
},
],
);
await this.run(
buildUid,
buildParameters.awsStackName,
@ -217,7 +187,7 @@ class AWS {
[
'-c',
`
aws s3 cp ./${buildUid}/output.zip s3://game-ci-storage/${buildUid}
aws s3 cp ./${buildUid}/output.zip s3://game-ci-storage/${buildUid}.zip
rm -r ${buildUid}
ls
`,