@@ -16,22 +16,15 @@ jobs:
16
16
label : ${{ steps.start-ec2-runner.outputs.label }}
17
17
ec2-instance-id : ${{ steps.start-ec2-runner.outputs.ec2-instance-id }}
18
18
steps :
19
- - name : Configure AWS credentials
20
- uses : aws-actions/configure-aws-credentials@v1
19
+ - name : Checkout Airbyte
20
+ uses : actions/checkout@v2
21
+ - name : Start AWS Runner
22
+ id : start-ec2-runner
23
+ uses : ./.github/actions/start-aws-runner
21
24
with :
22
25
aws-access-key-id : ${{ secrets.SELF_RUNNER_AWS_ACCESS_KEY_ID }}
23
26
aws-secret-access-key : ${{ secrets.SELF_RUNNER_AWS_SECRET_ACCESS_KEY }}
24
- aws-region : us-east-2
25
- - name : Start EC2 Runner
26
- id : start-ec2-runner
27
-
28
- with :
29
- mode : start
30
27
github-token : ${{ secrets.SELF_RUNNER_GITHUB_ACCESS_TOKEN }}
31
- ec2-image-id : ami-04bd6e81239f4f3fb
32
- ec2-instance-type : c5.2xlarge
33
- subnet-id : subnet-0469a9e68a379c1d3
34
- security-group-id : sg-0793f3c9413f21970
35
28
36
29
ensure-images-exist :
37
30
name : " Ensure all required Docker images exist on Dockerhub"
@@ -171,22 +164,15 @@ jobs:
171
164
label : ${{ steps.start-ec2-runner.outputs.label }}
172
165
ec2-instance-id : ${{ steps.start-ec2-runner.outputs.ec2-instance-id }}
173
166
steps :
174
- - name : Configure AWS credentials
175
- uses : aws-actions/configure-aws-credentials@v1
167
+ - name : Checkout Airbyte
168
+ uses : actions/checkout@v2
169
+ - name : Start AWS Runner
170
+ id : start-ec2-runner
171
+ uses : ./.github/actions/start-aws-runner
176
172
with :
177
173
aws-access-key-id : ${{ secrets.SELF_RUNNER_AWS_ACCESS_KEY_ID }}
178
174
aws-secret-access-key : ${{ secrets.SELF_RUNNER_AWS_SECRET_ACCESS_KEY }}
179
- aws-region : us-east-2
180
- - name : Start EC2 Runner
181
- id : start-ec2-runner
182
-
183
- with :
184
- mode : start
185
175
github-token : ${{ secrets.SELF_RUNNER_GITHUB_ACCESS_TOKEN }}
186
- ec2-image-id : ami-04bd6e81239f4f3fb
187
- ec2-instance-type : c5.2xlarge
188
- subnet-id : subnet-0469a9e68a379c1d3
189
- security-group-id : sg-0793f3c9413f21970
190
176
platform-build :
191
177
# In case of self-hosted EC2 errors, remove the next two lines and uncomment the currently commented out `runs-on` line.
192
178
needs : start-platform-build-runner # required to start the main job when the runner is ready
@@ -330,22 +316,15 @@ jobs:
330
316
label : ${{ steps.start-ec2-runner.outputs.label }}
331
317
ec2-instance-id : ${{ steps.start-ec2-runner.outputs.ec2-instance-id }}
332
318
steps :
333
- - name : Configure AWS credentials
334
- uses : aws-actions/configure-aws-credentials@v1
319
+ - name : Checkout Airbyte
320
+ uses : actions/checkout@v2
321
+ - name : Start AWS Runner
322
+ id : start-ec2-runner
323
+ uses : ./.github/actions/start-aws-runner
335
324
with :
336
325
aws-access-key-id : ${{ secrets.SELF_RUNNER_AWS_ACCESS_KEY_ID }}
337
326
aws-secret-access-key : ${{ secrets.SELF_RUNNER_AWS_SECRET_ACCESS_KEY }}
338
- aws-region : us-east-2
339
- - name : Start EC2 Runner
340
- id : start-ec2-runner
341
-
342
- with :
343
- mode : start
344
327
github-token : ${{ secrets.SELF_RUNNER_GITHUB_ACCESS_TOKEN }}
345
- ec2-image-id : ami-04bd6e81239f4f3fb
346
- ec2-instance-type : c5.2xlarge
347
- subnet-id : subnet-0469a9e68a379c1d3
348
- security-group-id : sg-0793f3c9413f21970
349
328
frontend-test :
350
329
needs : start-frontend-test-runner # required to start the main job when the runner is ready
351
330
runs-on : ${{ needs.start-frontend-test-runner.outputs.label }} # run the job on the newly created runner
@@ -422,22 +401,15 @@ jobs:
422
401
label : ${{ steps.start-ec2-runner.outputs.label }}
423
402
ec2-instance-id : ${{ steps.start-ec2-runner.outputs.ec2-instance-id }}
424
403
steps :
425
- - name : Configure AWS credentials
426
- uses : aws-actions/configure-aws-credentials@v1
404
+ - name : Checkout Airbyte
405
+ uses : actions/checkout@v2
406
+ - name : Start AWS Runner
407
+ id : start-ec2-runner
408
+ uses : ./.github/actions/start-aws-runner
427
409
with :
428
410
aws-access-key-id : ${{ secrets.SELF_RUNNER_AWS_ACCESS_KEY_ID }}
429
411
aws-secret-access-key : ${{ secrets.SELF_RUNNER_AWS_SECRET_ACCESS_KEY }}
430
- aws-region : us-east-2
431
- - name : Start EC2 runner
432
- id : start-ec2-runner
433
-
434
- with :
435
- mode : start
436
412
github-token : ${{ secrets.SELF_RUNNER_GITHUB_ACCESS_TOKEN }}
437
- ec2-image-id : ami-0d4083c04fde515c4
438
- ec2-instance-type : c5.2xlarge
439
- subnet-id : subnet-0469a9e68a379c1d3
440
- security-group-id : sg-0793f3c9413f21970
441
413
kube-acceptance-test :
442
414
# In case of self-hosted EC2 errors, removed the `needs` line and switch back to running on ubuntu-latest.
443
415
needs : start-kube-acceptance-test-runner # required to start the main job when the runner is ready
0 commit comments