pull/235/head
mdugdale 2021-04-03 15:32:54 +01:00
parent a758f9f8e0
commit 4fed96ce52
4 changed files with 10 additions and 9 deletions

1
dist/base-setup.yml vendored
View File

@ -276,6 +276,7 @@ Resources:
- Effect: "Allow" - Effect: "Allow"
Action: Action:
- "cloudformation:DeleteStack" - "cloudformation:DeleteStack"
- "kinesis:DeleteStream"
Resource: "*" Resource: "*"
### cloud watch to kinesis role ### cloud watch to kinesis role

8
dist/index.js vendored
View File

@ -227,7 +227,7 @@ class AWS {
try { try {
const buildUid = nanoid_1.nanoid(); const buildUid = nanoid_1.nanoid();
const branchName = (_a = process.env.GITHUB_REF) === null || _a === void 0 ? void 0 : _a.split('/').reverse()[0]; const branchName = (_a = process.env.GITHUB_REF) === null || _a === void 0 ? void 0 : _a.split('/').reverse()[0];
core.info('starting part 1/4 (clone from github and restore cache)'); core.info('Starting part 1/4 (clone from github and restore cache)');
yield this.run(buildUid, buildParameters.awsStackName, 'alpine/git', ['/bin/sh'], [ yield this.run(buildUid, buildParameters.awsStackName, 'alpine/git', ['/bin/sh'], [
'-c', '-c',
`apk update; `apk update;
@ -278,7 +278,7 @@ class AWS {
ParameterValue: buildParameters.githubToken, ParameterValue: buildParameters.githubToken,
}, },
]); ]);
core.info('starting part 2/4 (build)'); core.info('Starting part 2/4 (build unity project)');
yield this.run(buildUid, buildParameters.awsStackName, baseImage.toString(), ['/bin/sh'], [ yield this.run(buildUid, buildParameters.awsStackName, baseImage.toString(), ['/bin/sh'], [
'-c', '-c',
` `
@ -370,7 +370,7 @@ class AWS {
ParameterValue: buildParameters.androidKeyaliasPass ? buildParameters.androidKeyaliasPass : '0', ParameterValue: buildParameters.androidKeyaliasPass ? buildParameters.androidKeyaliasPass : '0',
}, },
]); ]);
core.info('starting part 3/4 (zip build and latest Library for caching)'); core.info('Starting part 3/4 (zip unity build and Library for caching)');
// Cleanup // Cleanup
yield this.run(buildUid, buildParameters.awsStackName, 'alpine', ['/bin/sh'], [ yield this.run(buildUid, buildParameters.awsStackName, 'alpine', ['/bin/sh'], [
'-c', '-c',
@ -392,7 +392,7 @@ class AWS {
ParameterValue: buildParameters.githubToken, ParameterValue: buildParameters.githubToken,
}, },
]); ]);
core.info('starting part 4/4 (upload to s3)'); core.info('Starting part 4/4 (upload build to s3)');
yield this.run(buildUid, buildParameters.awsStackName, 'amazon/aws-cli', ['/bin/sh'], [ yield this.run(buildUid, buildParameters.awsStackName, 'amazon/aws-cli', ['/bin/sh'], [
'-c', '-c',
` `

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -9,7 +9,7 @@ class AWS {
try { try {
const buildUid = nanoid(); const buildUid = nanoid();
const branchName = process.env.GITHUB_REF?.split('/').reverse()[0]; const branchName = process.env.GITHUB_REF?.split('/').reverse()[0];
core.info('starting part 1/4 (clone from github and restore cache)'); core.info('Starting part 1/4 (clone from github and restore cache)');
await this.run( await this.run(
buildUid, buildUid,
buildParameters.awsStackName, buildParameters.awsStackName,
@ -71,7 +71,7 @@ class AWS {
], ],
); );
core.info('starting part 2/4 (build)'); core.info('Starting part 2/4 (build unity project)');
await this.run( await this.run(
buildUid, buildUid,
buildParameters.awsStackName, buildParameters.awsStackName,
@ -173,7 +173,7 @@ class AWS {
}, },
], ],
); );
core.info('starting part 3/4 (zip build and latest Library for caching)'); core.info('Starting part 3/4 (zip unity build and Library for caching)');
// Cleanup // Cleanup
await this.run( await this.run(
buildUid, buildUid,
@ -206,7 +206,7 @@ class AWS {
], ],
); );
core.info('starting part 4/4 (upload to s3)'); core.info('Starting part 4/4 (upload build to s3)');
await this.run( await this.run(
buildUid, buildUid,
buildParameters.awsStackName, buildParameters.awsStackName,