@cloudsnorkel/cdk-github-runners 0.5.4 → 0.5.6
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 +391 -132
- package/API.md +108 -28
- package/lib/lambdas/delete-runner/index.js +1401 -167
- package/lib/lambdas/setup/index.js +2 -2
- package/lib/lambdas/status/index.js +96 -150
- package/lib/lambdas/token-retriever/index.js +1372 -153
- package/lib/lambdas/update-lambda/index.js +4471 -1463
- package/lib/providers/codebuild.d.ts +18 -7
- package/lib/providers/codebuild.js +9 -10
- package/lib/providers/common.d.ts +15 -2
- package/lib/providers/common.js +26 -5
- package/lib/providers/fargate.d.ts +16 -5
- package/lib/providers/fargate.js +6 -7
- package/lib/providers/image-builders/codebuild.js +1 -1
- package/lib/providers/image-builders/container.js +2 -2
- package/lib/providers/image-builders/static.js +1 -1
- package/lib/providers/lambda.d.ts +16 -5
- package/lib/providers/lambda.js +8 -9
- package/lib/runner.d.ts +7 -0
- package/lib/runner.js +35 -8
- package/lib/secrets.js +1 -1
- package/package.json +12 -11
package/API.md
CHANGED
|
@@ -381,7 +381,7 @@ Any object.
|
|
|
381
381
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.CodeBuildRunner.property.connections">connections</a></code> | <code>aws-cdk-lib.aws_ec2.Connections</code> | The network connections associated with this resource. |
|
|
382
382
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.CodeBuildRunner.property.grantPrincipal">grantPrincipal</a></code> | <code>aws-cdk-lib.aws_iam.IPrincipal</code> | Grant principal used to add permissions to the runner role. |
|
|
383
383
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.CodeBuildRunner.property.image">image</a></code> | <code><a href="#@cloudsnorkel/cdk-github-runners.RunnerImage">RunnerImage</a></code> | Docker image in CodeBuild project. |
|
|
384
|
-
| <code><a href="#@cloudsnorkel/cdk-github-runners.CodeBuildRunner.property.
|
|
384
|
+
| <code><a href="#@cloudsnorkel/cdk-github-runners.CodeBuildRunner.property.labels">labels</a></code> | <code>string[]</code> | Labels associated with this provider. |
|
|
385
385
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.CodeBuildRunner.property.project">project</a></code> | <code>aws-cdk-lib.aws_codebuild.Project</code> | CodeBuild project hosting the runner. |
|
|
386
386
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.CodeBuildRunner.property.securityGroup">securityGroup</a></code> | <code>aws-cdk-lib.aws_ec2.ISecurityGroup</code> | Security group attached to the task. |
|
|
387
387
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.CodeBuildRunner.property.vpc">vpc</a></code> | <code>aws-cdk-lib.aws_ec2.IVpc</code> | VPC used for hosting the project. |
|
|
@@ -436,15 +436,15 @@ Docker image in CodeBuild project.
|
|
|
436
436
|
|
|
437
437
|
---
|
|
438
438
|
|
|
439
|
-
##### `
|
|
439
|
+
##### `labels`<sup>Required</sup> <a name="labels" id="@cloudsnorkel/cdk-github-runners.CodeBuildRunner.property.labels"></a>
|
|
440
440
|
|
|
441
441
|
```typescript
|
|
442
|
-
public readonly
|
|
442
|
+
public readonly labels: string[];
|
|
443
443
|
```
|
|
444
444
|
|
|
445
|
-
- *Type:* string
|
|
445
|
+
- *Type:* string[]
|
|
446
446
|
|
|
447
|
-
|
|
447
|
+
Labels associated with this provider.
|
|
448
448
|
|
|
449
449
|
---
|
|
450
450
|
|
|
@@ -508,7 +508,7 @@ Use this Dockerfile unless you need to customize it further than allowed by hook
|
|
|
508
508
|
Available build arguments that can be set in the image builder:
|
|
509
509
|
* `BASE_IMAGE` sets the `FROM` line. This should be an Ubuntu compatible image.
|
|
510
510
|
* `EXTRA_PACKAGES` can be used to install additional packages.
|
|
511
|
-
* `DOCKER_CHANNEL` overrides the channel from which Docker will be downloaded. Defaults to `"
|
|
511
|
+
* `DOCKER_CHANNEL` overrides the channel from which Docker will be downloaded. Defaults to `"stable"`.
|
|
512
512
|
* `DIND_COMMIT` overrides the commit where dind is found.
|
|
513
513
|
* `DOCKER_VERSION` overrides the installed Docker version.
|
|
514
514
|
* `DOCKER_COMPOSE_VERSION` overrides the installed docker-compose version.
|
|
@@ -530,7 +530,7 @@ Use this Dockerfile unless you need to customize it further than allowed by hook
|
|
|
530
530
|
Available build arguments that can be set in the image builder:
|
|
531
531
|
* `BASE_IMAGE` sets the `FROM` line. This should be an Ubuntu compatible image.
|
|
532
532
|
* `EXTRA_PACKAGES` can be used to install additional packages.
|
|
533
|
-
* `DOCKER_CHANNEL` overrides the channel from which Docker will be downloaded. Defaults to `"
|
|
533
|
+
* `DOCKER_CHANNEL` overrides the channel from which Docker will be downloaded. Defaults to `"stable"`.
|
|
534
534
|
* `DIND_COMMIT` overrides the commit where dind is found.
|
|
535
535
|
* `DOCKER_VERSION` overrides the installed Docker version.
|
|
536
536
|
* `DOCKER_COMPOSE_VERSION` overrides the installed docker-compose version.
|
|
@@ -969,7 +969,7 @@ Any object.
|
|
|
969
969
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunner.property.container">container</a></code> | <code>aws-cdk-lib.aws_ecs.ContainerDefinition</code> | Container definition hosting the runner. |
|
|
970
970
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunner.property.grantPrincipal">grantPrincipal</a></code> | <code>aws-cdk-lib.aws_iam.IPrincipal</code> | Grant principal used to add permissions to the runner role. |
|
|
971
971
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunner.property.image">image</a></code> | <code><a href="#@cloudsnorkel/cdk-github-runners.RunnerImage">RunnerImage</a></code> | Docker image used to start a new Fargate task. |
|
|
972
|
-
| <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunner.property.
|
|
972
|
+
| <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunner.property.labels">labels</a></code> | <code>string[]</code> | Labels associated with this provider. |
|
|
973
973
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunner.property.spot">spot</a></code> | <code>boolean</code> | Use spot pricing for Fargate tasks. |
|
|
974
974
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunner.property.task">task</a></code> | <code>aws-cdk-lib.aws_ecs.FargateTaskDefinition</code> | Fargate task hosting the runner. |
|
|
975
975
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunner.property.securityGroup">securityGroup</a></code> | <code>aws-cdk-lib.aws_ec2.ISecurityGroup</code> | Security group attached to the task. |
|
|
@@ -1062,15 +1062,15 @@ Docker image used to start a new Fargate task.
|
|
|
1062
1062
|
|
|
1063
1063
|
---
|
|
1064
1064
|
|
|
1065
|
-
##### `
|
|
1065
|
+
##### `labels`<sup>Required</sup> <a name="labels" id="@cloudsnorkel/cdk-github-runners.FargateRunner.property.labels"></a>
|
|
1066
1066
|
|
|
1067
1067
|
```typescript
|
|
1068
|
-
public readonly
|
|
1068
|
+
public readonly labels: string[];
|
|
1069
1069
|
```
|
|
1070
1070
|
|
|
1071
|
-
- *Type:* string
|
|
1071
|
+
- *Type:* string[]
|
|
1072
1072
|
|
|
1073
|
-
|
|
1073
|
+
Labels associated with this provider.
|
|
1074
1074
|
|
|
1075
1075
|
---
|
|
1076
1076
|
|
|
@@ -1690,7 +1690,7 @@ Any object.
|
|
|
1690
1690
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.LambdaRunner.property.function">function</a></code> | <code>aws-cdk-lib.aws_lambda.Function</code> | The function hosting the GitHub runner. |
|
|
1691
1691
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.LambdaRunner.property.grantPrincipal">grantPrincipal</a></code> | <code>aws-cdk-lib.aws_iam.IPrincipal</code> | Grant principal used to add permissions to the runner role. |
|
|
1692
1692
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.LambdaRunner.property.image">image</a></code> | <code><a href="#@cloudsnorkel/cdk-github-runners.RunnerImage">RunnerImage</a></code> | Docker image used to start Lambda function. |
|
|
1693
|
-
| <code><a href="#@cloudsnorkel/cdk-github-runners.LambdaRunner.property.
|
|
1693
|
+
| <code><a href="#@cloudsnorkel/cdk-github-runners.LambdaRunner.property.labels">labels</a></code> | <code>string[]</code> | Labels associated with this provider. |
|
|
1694
1694
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.LambdaRunner.property.securityGroup">securityGroup</a></code> | <code>aws-cdk-lib.aws_ec2.ISecurityGroup</code> | Security group attached to the function. |
|
|
1695
1695
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.LambdaRunner.property.vpc">vpc</a></code> | <code>aws-cdk-lib.aws_ec2.IVpc</code> | VPC used for hosting the function. |
|
|
1696
1696
|
|
|
@@ -1756,15 +1756,15 @@ Docker image used to start Lambda function.
|
|
|
1756
1756
|
|
|
1757
1757
|
---
|
|
1758
1758
|
|
|
1759
|
-
##### `
|
|
1759
|
+
##### `labels`<sup>Required</sup> <a name="labels" id="@cloudsnorkel/cdk-github-runners.LambdaRunner.property.labels"></a>
|
|
1760
1760
|
|
|
1761
1761
|
```typescript
|
|
1762
|
-
public readonly
|
|
1762
|
+
public readonly labels: string[];
|
|
1763
1763
|
```
|
|
1764
1764
|
|
|
1765
|
-
- *Type:* string
|
|
1765
|
+
- *Type:* string[]
|
|
1766
1766
|
|
|
1767
|
-
|
|
1767
|
+
Labels associated with this provider.
|
|
1768
1768
|
|
|
1769
1769
|
---
|
|
1770
1770
|
|
|
@@ -2217,6 +2217,7 @@ const codeBuildRunnerProps: CodeBuildRunnerProps = { ... }
|
|
|
2217
2217
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.CodeBuildRunnerProps.property.computeType">computeType</a></code> | <code>aws-cdk-lib.aws_codebuild.ComputeType</code> | The type of compute to use for this build. |
|
|
2218
2218
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.CodeBuildRunnerProps.property.imageBuilder">imageBuilder</a></code> | <code><a href="#@cloudsnorkel/cdk-github-runners.IImageBuilder">IImageBuilder</a></code> | Provider running an image to run inside CodeBuild with GitHub runner pre-configured. |
|
|
2219
2219
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.CodeBuildRunnerProps.property.label">label</a></code> | <code>string</code> | GitHub Actions label used for this provider. |
|
|
2220
|
+
| <code><a href="#@cloudsnorkel/cdk-github-runners.CodeBuildRunnerProps.property.labels">labels</a></code> | <code>string[]</code> | GitHub Actions labels used for this provider. |
|
|
2220
2221
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.CodeBuildRunnerProps.property.securityGroup">securityGroup</a></code> | <code>aws-cdk-lib.aws_ec2.ISecurityGroup</code> | Security Group to assign to this instance. |
|
|
2221
2222
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.CodeBuildRunnerProps.property.subnetSelection">subnetSelection</a></code> | <code>aws-cdk-lib.aws_ec2.SubnetSelection</code> | Where to place the network interfaces within the VPC. |
|
|
2222
2223
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.CodeBuildRunnerProps.property.timeout">timeout</a></code> | <code>aws-cdk-lib.Duration</code> | The number of minutes after which AWS CodeBuild stops the build if it's not complete. |
|
|
@@ -2271,19 +2272,38 @@ A user named `runner` is expected to exist with access to Docker-in-Docker.
|
|
|
2271
2272
|
|
|
2272
2273
|
---
|
|
2273
2274
|
|
|
2274
|
-
#####
|
|
2275
|
+
##### ~~`label`~~<sup>Optional</sup> <a name="label" id="@cloudsnorkel/cdk-github-runners.CodeBuildRunnerProps.property.label"></a>
|
|
2276
|
+
|
|
2277
|
+
- *Deprecated:* use {@link labels} instead
|
|
2275
2278
|
|
|
2276
2279
|
```typescript
|
|
2277
2280
|
public readonly label: string;
|
|
2278
2281
|
```
|
|
2279
2282
|
|
|
2280
2283
|
- *Type:* string
|
|
2281
|
-
- *Default:*
|
|
2284
|
+
- *Default:* undefined
|
|
2282
2285
|
|
|
2283
2286
|
GitHub Actions label used for this provider.
|
|
2284
2287
|
|
|
2285
2288
|
---
|
|
2286
2289
|
|
|
2290
|
+
##### `labels`<sup>Optional</sup> <a name="labels" id="@cloudsnorkel/cdk-github-runners.CodeBuildRunnerProps.property.labels"></a>
|
|
2291
|
+
|
|
2292
|
+
```typescript
|
|
2293
|
+
public readonly labels: string[];
|
|
2294
|
+
```
|
|
2295
|
+
|
|
2296
|
+
- *Type:* string[]
|
|
2297
|
+
- *Default:* ['codebuild']
|
|
2298
|
+
|
|
2299
|
+
GitHub Actions labels used for this provider.
|
|
2300
|
+
|
|
2301
|
+
These labels are used to identify which provider should spawn a new on-demand runner. Every job sends a webhook with the labels it's looking for
|
|
2302
|
+
based on runs-on. We match the labels from the webhook with the labels specified here. If all the labels specified here are present in the
|
|
2303
|
+
job's labels, this provider will be chosen and spawn a new runner.
|
|
2304
|
+
|
|
2305
|
+
---
|
|
2306
|
+
|
|
2287
2307
|
##### `securityGroup`<sup>Optional</sup> <a name="securityGroup" id="@cloudsnorkel/cdk-github-runners.CodeBuildRunnerProps.property.securityGroup"></a>
|
|
2288
2308
|
|
|
2289
2309
|
```typescript
|
|
@@ -2549,6 +2569,7 @@ const fargateRunnerProps: FargateRunnerProps = { ... }
|
|
|
2549
2569
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunnerProps.property.ephemeralStorageGiB">ephemeralStorageGiB</a></code> | <code>number</code> | The amount (in GiB) of ephemeral storage to be allocated to the task. |
|
|
2550
2570
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunnerProps.property.imageBuilder">imageBuilder</a></code> | <code><a href="#@cloudsnorkel/cdk-github-runners.IImageBuilder">IImageBuilder</a></code> | Provider running an image to run inside CodeBuild with GitHub runner pre-configured. |
|
|
2551
2571
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunnerProps.property.label">label</a></code> | <code>string</code> | GitHub Actions label used for this provider. |
|
|
2572
|
+
| <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunnerProps.property.labels">labels</a></code> | <code>string[]</code> | GitHub Actions labels used for this provider. |
|
|
2552
2573
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunnerProps.property.memoryLimitMiB">memoryLimitMiB</a></code> | <code>number</code> | The amount (in MiB) of memory used by the task. |
|
|
2553
2574
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunnerProps.property.securityGroup">securityGroup</a></code> | <code>aws-cdk-lib.aws_ec2.ISecurityGroup</code> | Security Group to assign to the task. |
|
|
2554
2575
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.FargateRunnerProps.property.spot">spot</a></code> | <code>boolean</code> | Use Fargate spot capacity provider to save money. |
|
|
@@ -2661,19 +2682,38 @@ A user named `runner` is expected to exist.
|
|
|
2661
2682
|
|
|
2662
2683
|
---
|
|
2663
2684
|
|
|
2664
|
-
#####
|
|
2685
|
+
##### ~~`label`~~<sup>Optional</sup> <a name="label" id="@cloudsnorkel/cdk-github-runners.FargateRunnerProps.property.label"></a>
|
|
2686
|
+
|
|
2687
|
+
- *Deprecated:* use {@link labels} instead
|
|
2665
2688
|
|
|
2666
2689
|
```typescript
|
|
2667
2690
|
public readonly label: string;
|
|
2668
2691
|
```
|
|
2669
2692
|
|
|
2670
2693
|
- *Type:* string
|
|
2671
|
-
- *Default:*
|
|
2694
|
+
- *Default:* undefined
|
|
2672
2695
|
|
|
2673
2696
|
GitHub Actions label used for this provider.
|
|
2674
2697
|
|
|
2675
2698
|
---
|
|
2676
2699
|
|
|
2700
|
+
##### `labels`<sup>Optional</sup> <a name="labels" id="@cloudsnorkel/cdk-github-runners.FargateRunnerProps.property.labels"></a>
|
|
2701
|
+
|
|
2702
|
+
```typescript
|
|
2703
|
+
public readonly labels: string[];
|
|
2704
|
+
```
|
|
2705
|
+
|
|
2706
|
+
- *Type:* string[]
|
|
2707
|
+
- *Default:* ['fargate']
|
|
2708
|
+
|
|
2709
|
+
GitHub Actions labels used for this provider.
|
|
2710
|
+
|
|
2711
|
+
These labels are used to identify which provider should spawn a new on-demand runner. Every job sends a webhook with the labels it's looking for
|
|
2712
|
+
based on runs-on. We match the labels from the webhook with the labels specified here. If all the labels specified here are present in the
|
|
2713
|
+
job's labels, this provider will be chosen and spawn a new runner.
|
|
2714
|
+
|
|
2715
|
+
---
|
|
2716
|
+
|
|
2677
2717
|
##### `memoryLimitMiB`<sup>Optional</sup> <a name="memoryLimitMiB" id="@cloudsnorkel/cdk-github-runners.FargateRunnerProps.property.memoryLimitMiB"></a>
|
|
2678
2718
|
|
|
2679
2719
|
```typescript
|
|
@@ -2773,6 +2813,7 @@ const gitHubRunnersProps: GitHubRunnersProps = { ... }
|
|
|
2773
2813
|
| --- | --- | --- |
|
|
2774
2814
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.GitHubRunnersProps.property.allowPublicSubnet">allowPublicSubnet</a></code> | <code>boolean</code> | Allow management functions to run in public subnets. |
|
|
2775
2815
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.GitHubRunnersProps.property.extraCertificates">extraCertificates</a></code> | <code>string</code> | Path to a directory containing a file named certs.pem containing any additional certificates required to trust GitHub Enterprise Server. Use this when GitHub Enterprise Server certificates are self-signed. |
|
|
2816
|
+
| <code><a href="#@cloudsnorkel/cdk-github-runners.GitHubRunnersProps.property.idleTimeout">idleTimeout</a></code> | <code>aws-cdk-lib.Duration</code> | Time to wait before stopping a runner that remains idle. |
|
|
2776
2817
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.GitHubRunnersProps.property.providers">providers</a></code> | <code><a href="#@cloudsnorkel/cdk-github-runners.IRunnerProvider">IRunnerProvider</a>[]</code> | List of runner providers to use. |
|
|
2777
2818
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.GitHubRunnersProps.property.securityGroup">securityGroup</a></code> | <code>aws-cdk-lib.aws_ec2.ISecurityGroup</code> | Security group attached to all management functions. |
|
|
2778
2819
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.GitHubRunnersProps.property.vpc">vpc</a></code> | <code>aws-cdk-lib.aws_ec2.IVpc</code> | VPC used for all management functions. |
|
|
@@ -2829,6 +2870,21 @@ new GitHubRunners(
|
|
|
2829
2870
|
|
|
2830
2871
|
---
|
|
2831
2872
|
|
|
2873
|
+
##### `idleTimeout`<sup>Optional</sup> <a name="idleTimeout" id="@cloudsnorkel/cdk-github-runners.GitHubRunnersProps.property.idleTimeout"></a>
|
|
2874
|
+
|
|
2875
|
+
```typescript
|
|
2876
|
+
public readonly idleTimeout: Duration;
|
|
2877
|
+
```
|
|
2878
|
+
|
|
2879
|
+
- *Type:* aws-cdk-lib.Duration
|
|
2880
|
+
- *Default:* 10 minutes
|
|
2881
|
+
|
|
2882
|
+
Time to wait before stopping a runner that remains idle.
|
|
2883
|
+
|
|
2884
|
+
If the user cancelled the job, or if another runner stole it, this stops the runner to avoid wasting resources.
|
|
2885
|
+
|
|
2886
|
+
---
|
|
2887
|
+
|
|
2832
2888
|
##### `providers`<sup>Optional</sup> <a name="providers" id="@cloudsnorkel/cdk-github-runners.GitHubRunnersProps.property.providers"></a>
|
|
2833
2889
|
|
|
2834
2890
|
```typescript
|
|
@@ -3037,6 +3093,7 @@ const lambdaRunnerProps: LambdaRunnerProps = { ... }
|
|
|
3037
3093
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.LambdaRunnerProps.property.ephemeralStorageSize">ephemeralStorageSize</a></code> | <code>aws-cdk-lib.Size</code> | The size of the function’s /tmp directory in MiB. |
|
|
3038
3094
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.LambdaRunnerProps.property.imageBuilder">imageBuilder</a></code> | <code><a href="#@cloudsnorkel/cdk-github-runners.IImageBuilder">IImageBuilder</a></code> | Provider running an image to run inside CodeBuild with GitHub runner pre-configured. |
|
|
3039
3095
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.LambdaRunnerProps.property.label">label</a></code> | <code>string</code> | GitHub Actions label used for this provider. |
|
|
3096
|
+
| <code><a href="#@cloudsnorkel/cdk-github-runners.LambdaRunnerProps.property.labels">labels</a></code> | <code>string[]</code> | GitHub Actions labels used for this provider. |
|
|
3040
3097
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.LambdaRunnerProps.property.memorySize">memorySize</a></code> | <code>number</code> | The amount of memory, in MB, that is allocated to your Lambda function. |
|
|
3041
3098
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.LambdaRunnerProps.property.securityGroup">securityGroup</a></code> | <code>aws-cdk-lib.aws_ec2.ISecurityGroup</code> | Security Group to assign to this instance. |
|
|
3042
3099
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.LambdaRunnerProps.property.subnetSelection">subnetSelection</a></code> | <code>aws-cdk-lib.aws_ec2.SubnetSelection</code> | Where to place the network interfaces within the VPC. |
|
|
@@ -3092,19 +3149,38 @@ The default command (`CMD`) should be `["runner.handler"]` which points to an in
|
|
|
3092
3149
|
|
|
3093
3150
|
---
|
|
3094
3151
|
|
|
3095
|
-
#####
|
|
3152
|
+
##### ~~`label`~~<sup>Optional</sup> <a name="label" id="@cloudsnorkel/cdk-github-runners.LambdaRunnerProps.property.label"></a>
|
|
3153
|
+
|
|
3154
|
+
- *Deprecated:* use {@link labels} instead
|
|
3096
3155
|
|
|
3097
3156
|
```typescript
|
|
3098
3157
|
public readonly label: string;
|
|
3099
3158
|
```
|
|
3100
3159
|
|
|
3101
3160
|
- *Type:* string
|
|
3102
|
-
- *Default:*
|
|
3161
|
+
- *Default:* undefined
|
|
3103
3162
|
|
|
3104
3163
|
GitHub Actions label used for this provider.
|
|
3105
3164
|
|
|
3106
3165
|
---
|
|
3107
3166
|
|
|
3167
|
+
##### `labels`<sup>Optional</sup> <a name="labels" id="@cloudsnorkel/cdk-github-runners.LambdaRunnerProps.property.labels"></a>
|
|
3168
|
+
|
|
3169
|
+
```typescript
|
|
3170
|
+
public readonly labels: string[];
|
|
3171
|
+
```
|
|
3172
|
+
|
|
3173
|
+
- *Type:* string[]
|
|
3174
|
+
- *Default:* ['lambda']
|
|
3175
|
+
|
|
3176
|
+
GitHub Actions labels used for this provider.
|
|
3177
|
+
|
|
3178
|
+
These labels are used to identify which provider should spawn a new on-demand runner. Every job sends a webhook with the labels it's looking for
|
|
3179
|
+
based on runs-on. We match the labels from the webhook with the labels specified here. If all the labels specified here are present in the
|
|
3180
|
+
job's labels, this provider will be chosen and spawn a new runner.
|
|
3181
|
+
|
|
3182
|
+
---
|
|
3183
|
+
|
|
3108
3184
|
##### `memorySize`<sup>Optional</sup> <a name="memorySize" id="@cloudsnorkel/cdk-github-runners.LambdaRunnerProps.property.memorySize"></a>
|
|
3109
3185
|
|
|
3110
3186
|
```typescript
|
|
@@ -3887,7 +3963,7 @@ specific build parameters.
|
|
|
3887
3963
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.IRunnerProvider.property.connections">connections</a></code> | <code>aws-cdk-lib.aws_ec2.Connections</code> | The network connections associated with this resource. |
|
|
3888
3964
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.IRunnerProvider.property.grantPrincipal">grantPrincipal</a></code> | <code>aws-cdk-lib.aws_iam.IPrincipal</code> | The principal to grant permissions to. |
|
|
3889
3965
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.IRunnerProvider.property.image">image</a></code> | <code><a href="#@cloudsnorkel/cdk-github-runners.RunnerImage">RunnerImage</a></code> | Image used to create a new resource compute. |
|
|
3890
|
-
| <code><a href="#@cloudsnorkel/cdk-github-runners.IRunnerProvider.property.
|
|
3966
|
+
| <code><a href="#@cloudsnorkel/cdk-github-runners.IRunnerProvider.property.labels">labels</a></code> | <code>string[]</code> | GitHub Actions labels used for this provider. |
|
|
3891
3967
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.IRunnerProvider.property.securityGroup">securityGroup</a></code> | <code>aws-cdk-lib.aws_ec2.ISecurityGroup</code> | Security group associated with runners. |
|
|
3892
3968
|
| <code><a href="#@cloudsnorkel/cdk-github-runners.IRunnerProvider.property.vpc">vpc</a></code> | <code>aws-cdk-lib.aws_ec2.IVpc</code> | VPC network in which runners will be placed. |
|
|
3893
3969
|
|
|
@@ -3931,15 +4007,19 @@ Can be Docker image, AMI, or something else.
|
|
|
3931
4007
|
|
|
3932
4008
|
---
|
|
3933
4009
|
|
|
3934
|
-
##### `
|
|
4010
|
+
##### `labels`<sup>Required</sup> <a name="labels" id="@cloudsnorkel/cdk-github-runners.IRunnerProvider.property.labels"></a>
|
|
3935
4011
|
|
|
3936
4012
|
```typescript
|
|
3937
|
-
public readonly
|
|
4013
|
+
public readonly labels: string[];
|
|
3938
4014
|
```
|
|
3939
4015
|
|
|
3940
|
-
- *Type:* string
|
|
4016
|
+
- *Type:* string[]
|
|
4017
|
+
|
|
4018
|
+
GitHub Actions labels used for this provider.
|
|
3941
4019
|
|
|
3942
|
-
|
|
4020
|
+
These labels are used to identify which provider should spawn a new on-demand runner. Every job sends a webhook with the labels it's looking for
|
|
4021
|
+
based on runs-on. We use match the labels from the webhook with the labels specified here. If all the labels specified here are present in the
|
|
4022
|
+
job's labels, this provider will be chosen and spawn a new runner.
|
|
3943
4023
|
|
|
3944
4024
|
---
|
|
3945
4025
|
|