- Implements: aws-cdk-lib.aws_ec2.IConnectable
import { GithubActionsRunner } from '@cloudgardener/cdk-aws-fargate-github-actions-runner'
new GithubActionsRunner(scope: Construct, id: string, props: GithubActionsRunnerProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
GithubActionsRunnerProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: GithubActionsRunnerProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
public toString(): string
Returns a string representation of this construct.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { GithubActionsRunner } from '@cloudgardener/cdk-aws-fargate-github-actions-runner'
GithubActionsRunner.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
connections |
aws-cdk-lib.aws_ec2.Connections |
Makes runner "connectable". |
role |
aws-cdk-lib.aws_iam.IRole |
The IAM role associated with this runner. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly connections: Connections;
- Type: aws-cdk-lib.aws_ec2.Connections
Makes runner "connectable".
public readonly role: IRole;
- Type: aws-cdk-lib.aws_iam.IRole
The IAM role associated with this runner.
Properties of the GithubActionsRunner.
import { GithubActionsRunnerProps } from '@cloudgardener/cdk-aws-fargate-github-actions-runner'
const githubActionsRunnerProps: GithubActionsRunnerProps = { ... }
Name | Type | Description |
---|---|---|
githubToken |
aws-cdk-lib.aws_ecs.Secret |
Secret containing a GitHub Personal Access Token to be used for the runner authentication. |
runnerContext |
string |
The GitHub repository to use for the runner. |
cluster |
aws-cdk-lib.aws_ecs.ICluster |
The ECS cluster to run the task in. |
logRetentionDays |
number |
How long to store the GitHub runner logs. |
useSpotCapacity |
boolean |
Use Fargate SPOT capacity. |
vpc |
aws-cdk-lib.aws_ec2.IVpc |
The VPC to run the cluster in. |
public readonly githubToken: Secret;
- Type: aws-cdk-lib.aws_ecs.Secret
Secret containing a GitHub Personal Access Token to be used for the runner authentication.
public readonly runnerContext: string;
- Type: string
The GitHub repository to use for the runner.
Example
"https://github.com/cloudgardener/runner-demo"
public readonly cluster: ICluster;
- Type: aws-cdk-lib.aws_ecs.ICluster
- Default: a new cluster is created
The ECS cluster to run the task in.
public readonly logRetentionDays: number;
- Type: number
- Default: 7 days
How long to store the GitHub runner logs.
public readonly useSpotCapacity: boolean;
- Type: boolean
- Default: true
Use Fargate SPOT capacity.
public readonly vpc: IVpc;
- Type: aws-cdk-lib.aws_ec2.IVpc
- Default: a new VPC is created
The VPC to run the cluster in.