cleanup
parent
4fabb90646
commit
b6de3c36bd
File diff suppressed because one or more lines are too long
|
|
@ -143,7 +143,7 @@ class AWS {
|
||||||
// Cleanup
|
// Cleanup
|
||||||
await this.run(
|
await this.run(
|
||||||
buildParameters.awsStackName,
|
buildParameters.awsStackName,
|
||||||
'amazon/aws-cli',
|
'alpine',
|
||||||
['/bin/sh'],
|
['/bin/sh'],
|
||||||
[
|
[
|
||||||
'-c',
|
'-c',
|
||||||
|
|
@ -152,7 +152,34 @@ class AWS {
|
||||||
apk add zip
|
apk add zip
|
||||||
zip -r output.zip ./$BUILD_ID/repo/build
|
zip -r output.zip ./$BUILD_ID/repo/build
|
||||||
ls
|
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
|
rm -r ./$BUILD_ID
|
||||||
ls
|
ls
|
||||||
`],
|
`],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue