pull/218/head
mdugdale 2021-02-17 00:15:08 +00:00
parent 4fabb90646
commit b6de3c36bd
2 changed files with 30 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -143,7 +143,7 @@ class AWS {
// Cleanup
await this.run(
buildParameters.awsStackName,
'amazon/aws-cli',
'alpine',
['/bin/sh'],
[
'-c',
@ -152,7 +152,34 @@ class AWS {
apk add zip
zip -r output.zip ./$BUILD_ID/repo/build
ls
aws s3 cp output.zip
`],
'/data',
'/data/',
[
{
name: 'GITHUB_SHA',
value: process.env.GITHUB_SHA,
},
{
name: 'BUILD_ID',
value: buildId,
},
],
[
{
ParameterKey: 'GithubToken',
ParameterValue: buildParameters.githubToken,
},
],
);
await this.run(
buildParameters.awsStackName,
'amazon/aws-cli',
['/bin/sh'],
[
'-c',
`
aws s3 cp output.zip s3://game-ci-storage
rm -r ./$BUILD_ID
ls
`],