forked from github-aws-runners/terraform-aws-github-runner
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/runners-lambdas' of github.com:philips-labs/ter…
…raform-aws-github-runner into feature/runners-lambdas # Conflicts: # main.tf # modules/runners/lambdas/scale-runners/package.json # modules/runners/lambdas/scale-runners/src/local.ts # modules/runners/lambdas/scale-runners/yarn.lock
- Loading branch information
Showing
14 changed files
with
483 additions
and
811 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Lambda Scale Down Runners | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
paths: | ||
- .github/workflows/lambda-scale-down.yml | ||
- "modules/runners/lambdas/scale-down/**" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: node:12 | ||
defaults: | ||
run: | ||
working-directory: modules/runners/lambdas/scale-down | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: yarn install | ||
- name: Build distribution | ||
run: yarn build |
3 changes: 0 additions & 3 deletions
3
modules/runners/lambdas/cleanup-runners/src/cleanup-runners/handler.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
...ers/lambdas/cleanup-runners/src/lambda.ts → .../runners/lambdas/scale-down/src/lambda.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
import { handle } from './cleanup-runners/handler'; | ||
|
||
module.exports.handler = async (event: any, context: any, callback: any) => { | ||
const statusCode = await handle(event.headers, event.body); | ||
return callback(null, { | ||
statusCode: statusCode, | ||
}); | ||
const statusCode = await handle(); | ||
return callback(); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { handle } from './cleanup-runners/handler'; | ||
|
||
handle().catch((e) => { | ||
console.log(e); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const handle = async (): Promise<void> => {}; |
File renamed without changes.
Oops, something went wrong.