cloudsnorkel.cdk-github-runners 0.13.4__py3-none-any.whl → 0.14.1__py3-none-any.whl
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.
Potentially problematic release.
This version of cloudsnorkel.cdk-github-runners might be problematic. Click here for more details.
- cloudsnorkel/cdk_github_runners/__init__.py +55 -12
- cloudsnorkel/cdk_github_runners/_jsii/__init__.py +2 -2
- cloudsnorkel/cdk_github_runners/_jsii/cdk-github-runners@0.14.1.jsii.tgz +0 -0
- {cloudsnorkel.cdk_github_runners-0.13.4.dist-info → cloudsnorkel.cdk_github_runners-0.14.1.dist-info}/METADATA +53 -8
- cloudsnorkel.cdk_github_runners-0.14.1.dist-info/RECORD +9 -0
- cloudsnorkel/cdk_github_runners/_jsii/cdk-github-runners@0.13.4.jsii.tgz +0 -0
- cloudsnorkel.cdk_github_runners-0.13.4.dist-info/RECORD +0 -9
- {cloudsnorkel.cdk_github_runners-0.13.4.dist-info → cloudsnorkel.cdk_github_runners-0.14.1.dist-info}/LICENSE +0 -0
- {cloudsnorkel.cdk_github_runners-0.13.4.dist-info → cloudsnorkel.cdk_github_runners-0.14.1.dist-info}/WHEEL +0 -0
- {cloudsnorkel.cdk_github_runners-0.13.4.dist-info → cloudsnorkel.cdk_github_runners-0.14.1.dist-info}/top_level.txt +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'''
|
|
1
|
+
r'''
|
|
2
2
|
# GitHub Self-Hosted Runners CDK Constructs
|
|
3
3
|
|
|
4
4
|
[](https://www.npmjs.com/package/@cloudsnorkel/cdk-github-runners)
|
|
@@ -71,9 +71,14 @@ You can also create your own provider by implementing `IRunnerProvider`.
|
|
|
71
71
|
### Use
|
|
72
72
|
|
|
73
73
|
```python
|
|
74
|
+
from aws_cdk import App, Stack
|
|
74
75
|
from cloudsnorkel.cdk_github_runners import GitHubRunners
|
|
75
76
|
|
|
76
|
-
|
|
77
|
+
app = App()
|
|
78
|
+
stack = Stack(app, "github-runners")
|
|
79
|
+
GitHubRunners(stack, "runners")
|
|
80
|
+
|
|
81
|
+
app.synth()
|
|
77
82
|
```
|
|
78
83
|
|
|
79
84
|
</details>
|
|
@@ -90,9 +95,14 @@ You can also create your own provider by implementing `IRunnerProvider`.
|
|
|
90
95
|
### Use
|
|
91
96
|
|
|
92
97
|
```python
|
|
98
|
+
import { App, Stack } from 'aws-cdk-lib';
|
|
93
99
|
import { GitHubRunners } from '@cloudsnorkel/cdk-github-runners';
|
|
94
100
|
|
|
95
|
-
new
|
|
101
|
+
const app = new App();
|
|
102
|
+
const stack = new Stack(app, 'github-runners');
|
|
103
|
+
new GitHubRunners(stack, 'runners');
|
|
104
|
+
|
|
105
|
+
app.synth();
|
|
96
106
|
```
|
|
97
107
|
|
|
98
108
|
</details>
|
|
@@ -112,9 +122,19 @@ You can also create your own provider by implementing `IRunnerProvider`.
|
|
|
112
122
|
### Use
|
|
113
123
|
|
|
114
124
|
```java
|
|
125
|
+
import software.amazon.awscdk.App;
|
|
126
|
+
import software.amazon.awscdk.Stack;
|
|
115
127
|
import com.cloudsnorkel.cdk.github.runners.GitHubRunners;
|
|
116
128
|
|
|
117
|
-
|
|
129
|
+
public class Example {
|
|
130
|
+
public static void main(String[] args){
|
|
131
|
+
App app = new App();
|
|
132
|
+
Stack stack = new Stack(app, "github-runners");
|
|
133
|
+
GitHubRunners.Builder.create(stack, "runners").build();
|
|
134
|
+
|
|
135
|
+
app.synth();
|
|
136
|
+
}
|
|
137
|
+
}
|
|
118
138
|
```
|
|
119
139
|
|
|
120
140
|
</details>
|
|
@@ -131,9 +151,21 @@ You can also create your own provider by implementing `IRunnerProvider`.
|
|
|
131
151
|
### Use
|
|
132
152
|
|
|
133
153
|
```go
|
|
134
|
-
|
|
154
|
+
package main
|
|
155
|
+
|
|
156
|
+
import (
|
|
157
|
+
"github.com/CloudSnorkel/cdk-github-runners-go/cloudsnorkelcdkgithubrunners"
|
|
158
|
+
"github.com/aws/aws-cdk-go/awscdk/v2"
|
|
159
|
+
"github.com/aws/jsii-runtime-go"
|
|
160
|
+
)
|
|
135
161
|
|
|
136
|
-
|
|
162
|
+
func main() {
|
|
163
|
+
app := awscdk.NewApp(nil)
|
|
164
|
+
stack := awscdk.NewStack(app, jsii.String("github-runners"), &awscdk.StackProps{})
|
|
165
|
+
cloudsnorkelcdkgithubrunners.NewGitHubRunners(stack, jsii.String("runners"), &cloudsnorkelcdkgithubrunners.GitHubRunnersProps{})
|
|
166
|
+
|
|
167
|
+
app.Synth(nil)
|
|
168
|
+
}
|
|
137
169
|
```
|
|
138
170
|
|
|
139
171
|
</details>
|
|
@@ -150,9 +182,22 @@ You can also create your own provider by implementing `IRunnerProvider`.
|
|
|
150
182
|
### Use
|
|
151
183
|
|
|
152
184
|
```csharp
|
|
185
|
+
using Amazon.CDK;
|
|
153
186
|
using CloudSnorkel;
|
|
154
187
|
|
|
155
|
-
|
|
188
|
+
namespace Example
|
|
189
|
+
{
|
|
190
|
+
sealed class Program
|
|
191
|
+
{
|
|
192
|
+
public static void Main(string[] args)
|
|
193
|
+
{
|
|
194
|
+
var app = new App();
|
|
195
|
+
var stack = new Stack(app, "github-runners");
|
|
196
|
+
new GitHubRunners(stack, "runners");
|
|
197
|
+
app.Synth();
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
156
201
|
```
|
|
157
202
|
|
|
158
203
|
</details>
|
|
@@ -3492,7 +3537,7 @@ class LambdaRunnerProvider(
|
|
|
3492
3537
|
|
|
3493
3538
|
You can add components to the image builder by calling ``imageBuilder.addComponent()``.
|
|
3494
3539
|
|
|
3495
|
-
The default OS is Amazon Linux
|
|
3540
|
+
The default OS is Amazon Linux 2023 running on x64 architecture.
|
|
3496
3541
|
|
|
3497
3542
|
Included components:
|
|
3498
3543
|
|
|
@@ -3504,8 +3549,6 @@ class LambdaRunnerProvider(
|
|
|
3504
3549
|
- ``RunnerImageComponent.githubRunner()``
|
|
3505
3550
|
- ``RunnerImageComponent.lambdaEntrypoint()``
|
|
3506
3551
|
|
|
3507
|
-
Base Docker image: ``public.ecr.aws/lambda/nodejs:20-x86_64`` or ``public.ecr.aws/lambda/nodejs:20-arm64``
|
|
3508
|
-
|
|
3509
3552
|
:param scope: -
|
|
3510
3553
|
:param id: -
|
|
3511
3554
|
:param architecture: (experimental) Image architecture. Default: Architecture.X86_64
|
|
@@ -5908,7 +5951,7 @@ class AmiBuilder(
|
|
|
5908
5951
|
):
|
|
5909
5952
|
'''(deprecated) An AMI builder that uses AWS Image Builder to build AMIs pre-baked with all the GitHub Actions runner requirements.
|
|
5910
5953
|
|
|
5911
|
-
Builders can be used with {@link
|
|
5954
|
+
Builders can be used with {@link Ec2RunnerProvider }.
|
|
5912
5955
|
|
|
5913
5956
|
Each builder re-runs automatically at a set interval to make sure the AMIs contain the latest versions of everything.
|
|
5914
5957
|
|
|
@@ -5933,7 +5976,7 @@ class AmiBuilder(
|
|
|
5933
5976
|
amiBuilder: builder,
|
|
5934
5977
|
});
|
|
5935
5978
|
|
|
5936
|
-
:deprecated: use RunnerImageBuilder
|
|
5979
|
+
:deprecated: use RunnerImageBuilder, e.g. with Ec2RunnerProvider.imageBuilder()
|
|
5937
5980
|
|
|
5938
5981
|
:stability: deprecated
|
|
5939
5982
|
'''
|
|
@@ -18,9 +18,9 @@ import constructs._jsii
|
|
|
18
18
|
|
|
19
19
|
__jsii_assembly__ = jsii.JSIIAssembly.load(
|
|
20
20
|
"@cloudsnorkel/cdk-github-runners",
|
|
21
|
-
"0.
|
|
21
|
+
"0.14.1",
|
|
22
22
|
__name__[0:-6],
|
|
23
|
-
"cdk-github-runners@0.
|
|
23
|
+
"cdk-github-runners@0.14.1.jsii.tgz",
|
|
24
24
|
)
|
|
25
25
|
|
|
26
26
|
__all__ = [
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cloudsnorkel.cdk-github-runners
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.14.1
|
|
4
4
|
Summary: CDK construct to create GitHub Actions self-hosted runners. A webhook listens to events and creates ephemeral runners on the fly.
|
|
5
5
|
Home-page: https://github.com/CloudSnorkel/cdk-github-runners.git
|
|
6
6
|
Author: Amir Szekely<amir@cloudsnorkel.com>
|
|
@@ -22,7 +22,7 @@ Description-Content-Type: text/markdown
|
|
|
22
22
|
License-File: LICENSE
|
|
23
23
|
Requires-Dist: aws-cdk-lib <3.0.0,>=2.123.0
|
|
24
24
|
Requires-Dist: constructs <11.0.0,>=10.0.5
|
|
25
|
-
Requires-Dist: jsii <2.0.0,>=1.
|
|
25
|
+
Requires-Dist: jsii <2.0.0,>=1.100.0
|
|
26
26
|
Requires-Dist: publication >=0.0.3
|
|
27
27
|
Requires-Dist: typeguard ~=2.13.3
|
|
28
28
|
|
|
@@ -98,9 +98,14 @@ You can also create your own provider by implementing `IRunnerProvider`.
|
|
|
98
98
|
### Use
|
|
99
99
|
|
|
100
100
|
```python
|
|
101
|
+
from aws_cdk import App, Stack
|
|
101
102
|
from cloudsnorkel.cdk_github_runners import GitHubRunners
|
|
102
103
|
|
|
103
|
-
|
|
104
|
+
app = App()
|
|
105
|
+
stack = Stack(app, "github-runners")
|
|
106
|
+
GitHubRunners(stack, "runners")
|
|
107
|
+
|
|
108
|
+
app.synth()
|
|
104
109
|
```
|
|
105
110
|
|
|
106
111
|
</details>
|
|
@@ -117,9 +122,14 @@ You can also create your own provider by implementing `IRunnerProvider`.
|
|
|
117
122
|
### Use
|
|
118
123
|
|
|
119
124
|
```python
|
|
125
|
+
import { App, Stack } from 'aws-cdk-lib';
|
|
120
126
|
import { GitHubRunners } from '@cloudsnorkel/cdk-github-runners';
|
|
121
127
|
|
|
122
|
-
new
|
|
128
|
+
const app = new App();
|
|
129
|
+
const stack = new Stack(app, 'github-runners');
|
|
130
|
+
new GitHubRunners(stack, 'runners');
|
|
131
|
+
|
|
132
|
+
app.synth();
|
|
123
133
|
```
|
|
124
134
|
|
|
125
135
|
</details>
|
|
@@ -139,9 +149,19 @@ You can also create your own provider by implementing `IRunnerProvider`.
|
|
|
139
149
|
### Use
|
|
140
150
|
|
|
141
151
|
```java
|
|
152
|
+
import software.amazon.awscdk.App;
|
|
153
|
+
import software.amazon.awscdk.Stack;
|
|
142
154
|
import com.cloudsnorkel.cdk.github.runners.GitHubRunners;
|
|
143
155
|
|
|
144
|
-
|
|
156
|
+
public class Example {
|
|
157
|
+
public static void main(String[] args){
|
|
158
|
+
App app = new App();
|
|
159
|
+
Stack stack = new Stack(app, "github-runners");
|
|
160
|
+
GitHubRunners.Builder.create(stack, "runners").build();
|
|
161
|
+
|
|
162
|
+
app.synth();
|
|
163
|
+
}
|
|
164
|
+
}
|
|
145
165
|
```
|
|
146
166
|
|
|
147
167
|
</details>
|
|
@@ -158,9 +178,21 @@ You can also create your own provider by implementing `IRunnerProvider`.
|
|
|
158
178
|
### Use
|
|
159
179
|
|
|
160
180
|
```go
|
|
161
|
-
|
|
181
|
+
package main
|
|
182
|
+
|
|
183
|
+
import (
|
|
184
|
+
"github.com/CloudSnorkel/cdk-github-runners-go/cloudsnorkelcdkgithubrunners"
|
|
185
|
+
"github.com/aws/aws-cdk-go/awscdk/v2"
|
|
186
|
+
"github.com/aws/jsii-runtime-go"
|
|
187
|
+
)
|
|
188
|
+
|
|
189
|
+
func main() {
|
|
190
|
+
app := awscdk.NewApp(nil)
|
|
191
|
+
stack := awscdk.NewStack(app, jsii.String("github-runners"), &awscdk.StackProps{})
|
|
192
|
+
cloudsnorkelcdkgithubrunners.NewGitHubRunners(stack, jsii.String("runners"), &cloudsnorkelcdkgithubrunners.GitHubRunnersProps{})
|
|
162
193
|
|
|
163
|
-
|
|
194
|
+
app.Synth(nil)
|
|
195
|
+
}
|
|
164
196
|
```
|
|
165
197
|
|
|
166
198
|
</details>
|
|
@@ -177,9 +209,22 @@ You can also create your own provider by implementing `IRunnerProvider`.
|
|
|
177
209
|
### Use
|
|
178
210
|
|
|
179
211
|
```csharp
|
|
212
|
+
using Amazon.CDK;
|
|
180
213
|
using CloudSnorkel;
|
|
181
214
|
|
|
182
|
-
|
|
215
|
+
namespace Example
|
|
216
|
+
{
|
|
217
|
+
sealed class Program
|
|
218
|
+
{
|
|
219
|
+
public static void Main(string[] args)
|
|
220
|
+
{
|
|
221
|
+
var app = new App();
|
|
222
|
+
var stack = new Stack(app, "github-runners");
|
|
223
|
+
new GitHubRunners(stack, "runners");
|
|
224
|
+
app.Synth();
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
183
228
|
```
|
|
184
229
|
|
|
185
230
|
</details>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
cloudsnorkel/cdk_github_runners/__init__.py,sha256=6bIUJaprZZXAlX26Jl4P4cdgvZPXD6GW1HD50dm61gU,604268
|
|
2
|
+
cloudsnorkel/cdk_github_runners/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
3
|
+
cloudsnorkel/cdk_github_runners/_jsii/__init__.py,sha256=44LlieecBsvQr_KQMm5CtApbbHxrZ3fW_T6uk_rIZ38,508
|
|
4
|
+
cloudsnorkel/cdk_github_runners/_jsii/cdk-github-runners@0.14.1.jsii.tgz,sha256=Mc680IvqJupGTq-rhM33vZW9p6EYkCzrcuP5-tLJEsE,1441548
|
|
5
|
+
cloudsnorkel.cdk_github_runners-0.14.1.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
6
|
+
cloudsnorkel.cdk_github_runners-0.14.1.dist-info/METADATA,sha256=eSdLfrzMx_6GXtcTrgN5_h-oPBh1kThU4ioUCEcTUEc,17610
|
|
7
|
+
cloudsnorkel.cdk_github_runners-0.14.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
8
|
+
cloudsnorkel.cdk_github_runners-0.14.1.dist-info/top_level.txt,sha256=6vUrT-dcGOiRMT4Q6gEQPznoyS7nHOJ269MHpo4DEd8,13
|
|
9
|
+
cloudsnorkel.cdk_github_runners-0.14.1.dist-info/RECORD,,
|
|
Binary file
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
cloudsnorkel/cdk_github_runners/__init__.py,sha256=LK6JUJoDoPN5IJHTroRibrmP9Bqr1hj3DPk3Pk34mf4,603186
|
|
2
|
-
cloudsnorkel/cdk_github_runners/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
3
|
-
cloudsnorkel/cdk_github_runners/_jsii/__init__.py,sha256=3MSZtQ-RSyro2E7LPMIKhFqb9Z2ujXpdl-UJtVwItCk,508
|
|
4
|
-
cloudsnorkel/cdk_github_runners/_jsii/cdk-github-runners@0.13.4.jsii.tgz,sha256=15HmL5aA6i9V9c1idvBcFnyq8MjVlWndCyj7zUXR3jE,1438707
|
|
5
|
-
cloudsnorkel.cdk_github_runners-0.13.4.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
6
|
-
cloudsnorkel.cdk_github_runners-0.13.4.dist-info/METADATA,sha256=97zZc8NSnAGc6PygNVp5lMnGlq26iMV7dJvTk5XmE0s,16467
|
|
7
|
-
cloudsnorkel.cdk_github_runners-0.13.4.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
8
|
-
cloudsnorkel.cdk_github_runners-0.13.4.dist-info/top_level.txt,sha256=6vUrT-dcGOiRMT4Q6gEQPznoyS7nHOJ269MHpo4DEd8,13
|
|
9
|
-
cloudsnorkel.cdk_github_runners-0.13.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|