@cloudsnorkel/cdk-github-runners 0.11.1 → 0.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +15 -14
- package/API.md +5 -5
- package/SETUP_GITHUB.md +1 -0
- package/assets/setup.lambda/index.html +2 -2
- package/assets/webhook-handler.lambda/index.js +8 -3
- package/lib/access.js +1 -1
- package/lib/image-builders/api.js +1 -1
- package/lib/image-builders/aws-image-builder/builder.js +1 -1
- package/lib/image-builders/aws-image-builder/deprecated/ami.js +1 -1
- package/lib/image-builders/aws-image-builder/deprecated/container.js +1 -1
- package/lib/image-builders/aws-image-builder/deprecated/linux-components.js +1 -1
- package/lib/image-builders/aws-image-builder/deprecated/windows-components.js +1 -1
- package/lib/image-builders/codebuild-deprecated.js +1 -1
- package/lib/image-builders/components.d.ts +2 -0
- package/lib/image-builders/components.js +5 -43
- package/lib/image-builders/static.js +1 -1
- package/lib/providers/codebuild.d.ts +2 -2
- package/lib/providers/codebuild.js +5 -5
- package/lib/providers/common.js +3 -3
- package/lib/providers/ec2.js +2 -2
- package/lib/providers/ecs.d.ts +1 -1
- package/lib/providers/ecs.js +4 -4
- package/lib/providers/fargate.js +2 -2
- package/lib/providers/lambda.js +2 -2
- package/lib/runner.js +1 -1
- package/lib/secrets.js +1 -1
- package/lib/webhook-handler.lambda.js +10 -4
- package/package.json +7 -7
package/.jsii
CHANGED
|
@@ -5113,7 +5113,7 @@
|
|
|
5113
5113
|
"methods": [
|
|
5114
5114
|
{
|
|
5115
5115
|
"docs": {
|
|
5116
|
-
"remarks": "Included components:\n * `RunnerImageComponent.requiredPackages()`\n * `RunnerImageComponent.runnerUser()`\n * `RunnerImageComponent.git()`\n * `RunnerImageComponent.githubCli()`\n * `RunnerImageComponent.awsCli()`\n * `RunnerImageComponent.
|
|
5116
|
+
"remarks": "Included components:\n * `RunnerImageComponent.requiredPackages()`\n * `RunnerImageComponent.runnerUser()`\n * `RunnerImageComponent.git()`\n * `RunnerImageComponent.githubCli()`\n * `RunnerImageComponent.awsCli()`\n * `RunnerImageComponent.docker()`\n * `RunnerImageComponent.githubRunner()`",
|
|
5117
5117
|
"stability": "experimental",
|
|
5118
5118
|
"summary": "Create new image builder that builds CodeBuild specific runner images using Ubuntu."
|
|
5119
5119
|
},
|
|
@@ -5499,7 +5499,7 @@
|
|
|
5499
5499
|
"abstract": true,
|
|
5500
5500
|
"docs": {
|
|
5501
5501
|
"default": "CodeBuildRunnerProvider.imageBuilder()",
|
|
5502
|
-
"remarks": "The image builder must contain the {@link RunnerImageComponent.
|
|
5502
|
+
"remarks": "The image builder must contain the {@link RunnerImageComponent.docker} component unless `dockerInDocker` is set to false.\n\nThe image builder determines the OS and architecture of the runner.",
|
|
5503
5503
|
"stability": "experimental",
|
|
5504
5504
|
"summary": "Runner image builder used to build Docker images containing GitHub Runner and all requirements."
|
|
5505
5505
|
},
|
|
@@ -6986,7 +6986,7 @@
|
|
|
6986
6986
|
"methods": [
|
|
6987
6987
|
{
|
|
6988
6988
|
"docs": {
|
|
6989
|
-
"remarks": "Included components:\n * `RunnerImageComponent.requiredPackages()`\n * `RunnerImageComponent.runnerUser()`\n * `RunnerImageComponent.git()`\n * `RunnerImageComponent.githubCli()`\n * `RunnerImageComponent.awsCli()`\n * `RunnerImageComponent.
|
|
6989
|
+
"remarks": "Included components:\n * `RunnerImageComponent.requiredPackages()`\n * `RunnerImageComponent.runnerUser()`\n * `RunnerImageComponent.git()`\n * `RunnerImageComponent.githubCli()`\n * `RunnerImageComponent.awsCli()`\n * `RunnerImageComponent.docker()`\n * `RunnerImageComponent.githubRunner()`",
|
|
6990
6990
|
"stability": "experimental",
|
|
6991
6991
|
"summary": "Create new image builder that builds ECS specific runner images using Ubuntu."
|
|
6992
6992
|
},
|
|
@@ -12120,12 +12120,13 @@
|
|
|
12120
12120
|
},
|
|
12121
12121
|
{
|
|
12122
12122
|
"docs": {
|
|
12123
|
-
"
|
|
12123
|
+
"deprecated": "use `docker()`",
|
|
12124
|
+
"stability": "deprecated",
|
|
12124
12125
|
"summary": "A component to install Docker-in-Docker."
|
|
12125
12126
|
},
|
|
12126
12127
|
"locationInModule": {
|
|
12127
12128
|
"filename": "src/image-builders/components.ts",
|
|
12128
|
-
"line":
|
|
12129
|
+
"line": 399
|
|
12129
12130
|
},
|
|
12130
12131
|
"name": "dockerInDocker",
|
|
12131
12132
|
"returns": {
|
|
@@ -12143,7 +12144,7 @@
|
|
|
12143
12144
|
},
|
|
12144
12145
|
"locationInModule": {
|
|
12145
12146
|
"filename": "src/image-builders/components.ts",
|
|
12146
|
-
"line":
|
|
12147
|
+
"line": 409
|
|
12147
12148
|
},
|
|
12148
12149
|
"name": "extraCertificates",
|
|
12149
12150
|
"parameters": [
|
|
@@ -12244,7 +12245,7 @@
|
|
|
12244
12245
|
},
|
|
12245
12246
|
"locationInModule": {
|
|
12246
12247
|
"filename": "src/image-builders/components.ts",
|
|
12247
|
-
"line":
|
|
12248
|
+
"line": 459
|
|
12248
12249
|
},
|
|
12249
12250
|
"name": "lambdaEntrypoint",
|
|
12250
12251
|
"returns": {
|
|
@@ -12296,7 +12297,7 @@
|
|
|
12296
12297
|
},
|
|
12297
12298
|
"locationInModule": {
|
|
12298
12299
|
"filename": "src/image-builders/components.ts",
|
|
12299
|
-
"line":
|
|
12300
|
+
"line": 508
|
|
12300
12301
|
},
|
|
12301
12302
|
"name": "getAssets",
|
|
12302
12303
|
"parameters": [
|
|
@@ -12333,7 +12334,7 @@
|
|
|
12333
12334
|
},
|
|
12334
12335
|
"locationInModule": {
|
|
12335
12336
|
"filename": "src/image-builders/components.ts",
|
|
12336
|
-
"line":
|
|
12337
|
+
"line": 503
|
|
12337
12338
|
},
|
|
12338
12339
|
"name": "getCommands",
|
|
12339
12340
|
"parameters": [
|
|
@@ -12369,7 +12370,7 @@
|
|
|
12369
12370
|
},
|
|
12370
12371
|
"locationInModule": {
|
|
12371
12372
|
"filename": "src/image-builders/components.ts",
|
|
12372
|
-
"line":
|
|
12373
|
+
"line": 517
|
|
12373
12374
|
},
|
|
12374
12375
|
"name": "getDockerCommands",
|
|
12375
12376
|
"parameters": [
|
|
@@ -12404,7 +12405,7 @@
|
|
|
12404
12405
|
},
|
|
12405
12406
|
"locationInModule": {
|
|
12406
12407
|
"filename": "src/image-builders/components.ts",
|
|
12407
|
-
"line":
|
|
12408
|
+
"line": 524
|
|
12408
12409
|
},
|
|
12409
12410
|
"name": "shouldReboot",
|
|
12410
12411
|
"parameters": [
|
|
@@ -12440,7 +12441,7 @@
|
|
|
12440
12441
|
"immutable": true,
|
|
12441
12442
|
"locationInModule": {
|
|
12442
12443
|
"filename": "src/image-builders/components.ts",
|
|
12443
|
-
"line":
|
|
12444
|
+
"line": 498
|
|
12444
12445
|
},
|
|
12445
12446
|
"name": "name",
|
|
12446
12447
|
"type": {
|
|
@@ -13324,6 +13325,6 @@
|
|
|
13324
13325
|
"symbolId": "src/image-builders/aws-image-builder/deprecated/windows-components:WindowsComponents"
|
|
13325
13326
|
}
|
|
13326
13327
|
},
|
|
13327
|
-
"version": "0.11.
|
|
13328
|
-
"fingerprint": "
|
|
13328
|
+
"version": "0.11.3",
|
|
13329
|
+
"fingerprint": "L8i2LNt6SHuebgwUjIMYui+ilaqzrput7YJ3zRA3bCk="
|
|
13329
13330
|
}
|
package/API.md
CHANGED
|
@@ -669,7 +669,7 @@ Included components:
|
|
|
669
669
|
* `RunnerImageComponent.git()`
|
|
670
670
|
* `RunnerImageComponent.githubCli()`
|
|
671
671
|
* `RunnerImageComponent.awsCli()`
|
|
672
|
-
* `RunnerImageComponent.
|
|
672
|
+
* `RunnerImageComponent.docker()`
|
|
673
673
|
* `RunnerImageComponent.githubRunner()`
|
|
674
674
|
|
|
675
675
|
###### `scope`<sup>Required</sup> <a name="scope" id="@cloudsnorkel/cdk-github-runners.CodeBuildRunner.imageBuilder.parameter.scope"></a>
|
|
@@ -1035,7 +1035,7 @@ Included components:
|
|
|
1035
1035
|
* `RunnerImageComponent.git()`
|
|
1036
1036
|
* `RunnerImageComponent.githubCli()`
|
|
1037
1037
|
* `RunnerImageComponent.awsCli()`
|
|
1038
|
-
* `RunnerImageComponent.
|
|
1038
|
+
* `RunnerImageComponent.docker()`
|
|
1039
1039
|
* `RunnerImageComponent.githubRunner()`
|
|
1040
1040
|
|
|
1041
1041
|
###### `scope`<sup>Required</sup> <a name="scope" id="@cloudsnorkel/cdk-github-runners.CodeBuildRunnerProvider.imageBuilder.parameter.scope"></a>
|
|
@@ -2148,7 +2148,7 @@ Included components:
|
|
|
2148
2148
|
* `RunnerImageComponent.git()`
|
|
2149
2149
|
* `RunnerImageComponent.githubCli()`
|
|
2150
2150
|
* `RunnerImageComponent.awsCli()`
|
|
2151
|
-
* `RunnerImageComponent.
|
|
2151
|
+
* `RunnerImageComponent.docker()`
|
|
2152
2152
|
* `RunnerImageComponent.githubRunner()`
|
|
2153
2153
|
|
|
2154
2154
|
###### `scope`<sup>Required</sup> <a name="scope" id="@cloudsnorkel/cdk-github-runners.EcsRunnerProvider.imageBuilder.parameter.scope"></a>
|
|
@@ -5476,7 +5476,7 @@ public readonly imageBuilder: IRunnerImageBuilder;
|
|
|
5476
5476
|
|
|
5477
5477
|
Runner image builder used to build Docker images containing GitHub Runner and all requirements.
|
|
5478
5478
|
|
|
5479
|
-
The image builder must contain the {@link RunnerImageComponent.
|
|
5479
|
+
The image builder must contain the {@link RunnerImageComponent.docker} component unless `dockerInDocker` is set to false.
|
|
5480
5480
|
|
|
5481
5481
|
The image builder determines the OS and architecture of the runner.
|
|
5482
5482
|
|
|
@@ -8873,7 +8873,7 @@ A component to install Docker.
|
|
|
8873
8873
|
|
|
8874
8874
|
On Windows this sets up dockerd for Windows containers without Docker Desktop. If you need Linux containers on Windows, you'll need to install Docker Desktop which doesn't seem to play well with servers (PRs welcome).
|
|
8875
8875
|
|
|
8876
|
-
#####
|
|
8876
|
+
##### ~~`dockerInDocker`~~ <a name="dockerInDocker" id="@cloudsnorkel/cdk-github-runners.RunnerImageComponent.dockerInDocker"></a>
|
|
8877
8877
|
|
|
8878
8878
|
```typescript
|
|
8879
8879
|
import { RunnerImageComponent } from '@cloudsnorkel/cdk-github-runners'
|
package/SETUP_GITHUB.md
CHANGED
|
@@ -30,6 +30,7 @@ Integration with GitHub can be done using an [app](#app-authentication) or [pers
|
|
|
30
30
|
4. In the repository permissions section enable:
|
|
31
31
|
1. Actions: Read and write
|
|
32
32
|
2. Administration: Read and write
|
|
33
|
+
3. Deployments: Read-only
|
|
33
34
|
5. In the event subscription section enable:
|
|
34
35
|
1. Workflow job
|
|
35
36
|
6. Under "Where can this GitHub App be installed?" select "Only on this account"
|