8 ms·
We evaluated this but shied away from the complexity... In the end we build a slim version ourself containing 1. A codebuild job running a container image whic
by SpookyChoice 3y ago
We evaluated this but shied away from the complexity... In the end we build a slim version ourself containing
1. A codebuild job running a container image which starts a runner with custom labels
2. A lambda to receive the webhook from github and run the codebuild job on demand.
- Shorn 3y agoI haven't implemented it myself - I just assumed this would be the way to folks would do this. What would implementing all the infra give you in terms of benefits over codebuild? The readme doesn't mention anything about codebuild that I can see.
- kichik 3y agoCodeBuild can be a bit slow to start sometimes. It also doesn't support Docker on Windows builds and it's limited to 8 hours per run. Shameless plug: I wrote a CDK construct that lets you create runners on demand in response to a GitHub webhook (so basically what was suggested here only with handling of more corner cases that came up). It lets you start runners in CodeBuild, Fargate, ECS, EC2, or Lambda so you can pick whichever works best for you. There is a table in the readme that shows the difference between them and why you might want to choose one over the other. https://github.com/CloudSnorkel/cdk-github-runners https://github.com/CloudSnorkel/cdk-github-runners