@@ -16,22 +16,15 @@ jobs:
1616 label : ${{ steps.start-ec2-runner.outputs.label }}
1717 ec2-instance-id : ${{ steps.start-ec2-runner.outputs.ec2-instance-id }}
1818 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
2124 with :
2225 aws-access-key-id : ${{ secrets.SELF_RUNNER_AWS_ACCESS_KEY_ID }}
2326 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- uses : machulav/ec2-github-runner@v2.3.0
28- with :
29- mode : start
3027 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
3528
3629 ensure-images-exist :
3730 name : " Ensure all required Docker images exist on Dockerhub"
@@ -171,22 +164,15 @@ jobs:
171164 label : ${{ steps.start-ec2-runner.outputs.label }}
172165 ec2-instance-id : ${{ steps.start-ec2-runner.outputs.ec2-instance-id }}
173166 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
176172 with :
177173 aws-access-key-id : ${{ secrets.SELF_RUNNER_AWS_ACCESS_KEY_ID }}
178174 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- uses : machulav/ec2-github-runner@v2.3.0
183- with :
184- mode : start
185175 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
190176 platform-build :
191177 # In case of self-hosted EC2 errors, remove the next two lines and uncomment the currently commented out `runs-on` line.
192178 needs : start-platform-build-runner # required to start the main job when the runner is ready
@@ -330,22 +316,15 @@ jobs:
330316 label : ${{ steps.start-ec2-runner.outputs.label }}
331317 ec2-instance-id : ${{ steps.start-ec2-runner.outputs.ec2-instance-id }}
332318 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
335324 with :
336325 aws-access-key-id : ${{ secrets.SELF_RUNNER_AWS_ACCESS_KEY_ID }}
337326 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- uses : machulav/ec2-github-runner@v2.3.0
342- with :
343- mode : start
344327 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
349328 frontend-test :
350329 needs : start-frontend-test-runner # required to start the main job when the runner is ready
351330 runs-on : ${{ needs.start-frontend-test-runner.outputs.label }} # run the job on the newly created runner
@@ -422,22 +401,15 @@ jobs:
422401 label : ${{ steps.start-ec2-runner.outputs.label }}
423402 ec2-instance-id : ${{ steps.start-ec2-runner.outputs.ec2-instance-id }}
424403 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
427409 with :
428410 aws-access-key-id : ${{ secrets.SELF_RUNNER_AWS_ACCESS_KEY_ID }}
429411 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- uses : machulav/ec2-github-runner@v2.3.0
434- with :
435- mode : start
436412 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
441413 kube-acceptance-test :
442414 # In case of self-hosted EC2 errors, removed the `needs` line and switch back to running on ubuntu-latest.
443415 needs : start-kube-acceptance-test-runner # required to start the main job when the runner is ready
0 commit comments