Skip to content

Commit 93310de

Browse files
committed
Merge branch 'main' of /Users/jschmidt/meta/move-files/terraform-aws-github-runner into jeanschmidt/merge-terraform-aws-github-runner
2 parents 1178afe + 018292d commit 93310de

File tree

158 files changed

+27484
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+27484
-0
lines changed

.github/workflows/lambda-runners.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Lambda Runners
2+
on:
3+
push:
4+
branches:
5+
- develop
6+
pull_request:
7+
paths:
8+
- .github/workflows/lambda-runners.yml
9+
- "terraform-aws-github-runner/modules/runners/lambdas/runners/**"
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
container: node:12
15+
defaults:
16+
run:
17+
working-directory: terraform-aws-github-runner/modules/runners/lambdas/runners
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Install dependencies
22+
run: yarn install
23+
- name: Run linter
24+
run: yarn lint
25+
- name: Run tests
26+
run: yarn test
27+
- name: Build distribution
28+
run: yarn build

.github/workflows/lambda-webhook.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Lambda Webhook
2+
on:
3+
push:
4+
branches:
5+
- develop
6+
pull_request:
7+
paths:
8+
- .github/workflows/lambda-webhook.yml
9+
- "terraform-aws-github-runner/modules/webhook/lambdas/webhook/**"
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
container: node:12
15+
defaults:
16+
run:
17+
working-directory: terraform-aws-github-runner/modules/webhook/lambdas/webhook
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Install dependencies
22+
run: yarn install
23+
- name: Run linter
24+
run: yarn lint
25+
- name: Run tests
26+
run: yarn test
27+
- name: Build distribution
28+
run: yarn build
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Terraform lock files
2+
*.lock.hcl
3+
4+
# state
5+
*.tfstate*
6+
7+
# Module directory
8+
.terraform/
9+
10+
# keys
11+
*id_rsa*
12+
13+
# other
14+
.idea
15+
.DS_Store
16+
*.out
17+
example/*.secrets*.tfvars
18+
.envrc
19+
*.zip
20+
*.gz
21+
*.tgz
22+
*.env
23+
.vscode
24+
25+
**/coverage/*
26+
27+
/build/
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
The MIT License (MIT) Copyright © 2020 Koninklijke Philips N.V, https://www.philips.com
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<mxfile host="Electron" modified="2020-05-20T07:58:25.362Z" agent="5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/13.0.3 Chrome/80.0.3987.163 Electron/8.2.1 Safari/537.36" etag="yWFBKNvL56pLtAHCv6Ig" version="13.0.3" type="device"><diagram id="L_F16tsUUGYp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dMmj8Cu9sKr3wK7dssP6ismP7MQlrKwxNrc6jyFAR188EzHJY2wH9C0N/C2W9EjgT+8tMQNoZW9euLNUkUsIHNGcaOKVVpblyjZ0Ke30jCtSmNVB2s+Rz7MKIKyshPVP77Ok9ziLCR36kBxUmaAxy42cg/nB17kKCu+muDU/78C61Hm9Yby2GMLUO+fatfoU1wnswwGQRRQmA0UgSSl5ZrAVNhBQ2eYLFdTn+m4usEV/FxQiFrXH/ySapejE57CQ1s9m78Qqfu6i6NS9rCAbty2WDXyMQRoCg2UfcQsaPxA3RNAawN7SybjnoHe+3hn8311+0sL4VpFqd9/zsvsoM/ceqmAE3IaE1bjtAOyqny914n/W0MsAX9KWKahvRHi6uP73NzXf0JA3DxPw==</diagram></mxfile>

terraform-aws-github-runner/docs/architecture.svg

Lines changed: 3 additions & 0 deletions
Loading

terraform-aws-github-runner/docs/component-overview.svg

Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.13.5
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Action runners deployment default example
2+
3+
This modules shows how to create GitHub action runners. Lambda release will be downloaded from GitHub.
4+
5+
## Usages
6+
7+
Steps for the full setup, such as creating a GitHub app can be found in the root module's [README](../../README.md). First download the Lambda releases from GitHub. Alternatively you can build the lambdas locally with Node or Docker, there is a simple build script in `<root>/.ci/build.sh`. In the `main.tf` you can simple remove the location of the lambda zip files, the default location will work in this case.
8+
9+
> Ensure you have set the version in `lambdas-download/main.tf` for running the example. The version needs to be set to a GitHub release version, see https://github.com/philips-labs/terraform-aws-github-runner/releases
10+
11+
```bash
12+
cd lambdas-download
13+
terraform init
14+
terraform apply
15+
cd ..
16+
```
17+
18+
Before running Terraform, ensure the GitHub app is configured.
19+
20+
```bash
21+
terraform init
22+
terraform apply
23+
```
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
locals {
2+
version = "<REPLACE_BY_GITHUB_RELEASE_VERSION>"
3+
}
4+
5+
module "lambdas" {
6+
source = "../../../modules/download-lambda"
7+
lambdas = [
8+
{
9+
name = "webhook"
10+
tag = local.version
11+
},
12+
{
13+
name = "runners"
14+
tag = local.version
15+
},
16+
{
17+
name = "runner-binaries-syncer"
18+
tag = local.version
19+
}
20+
]
21+
}
22+
23+
output "files" {
24+
value = module.lambdas.files
25+
}

0 commit comments

Comments
 (0)