-
Notifications
You must be signed in to change notification settings - Fork 5
41 lines (39 loc) · 1.47 KB
/
start-cloud-runners.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
on:
workflow_call:
# Map the workflow outputs to job outputs
outputs:
run-ons:
description: Array of references to cloud runners
value: ${{ jobs.start-runners.outputs.run-ons }}
jobs:
# starts self-hosted runner in AWS and Azure. They are NOT ephemeral and will run until cleanup in the stop-runner
start-runners:
name: Start cloud runners
runs-on: ubuntu-latest
outputs:
run-ons: ${{ steps.start-cloud-runner.outputs.run-ons }}
steps:
- name: Get public Keys
uses: actions/checkout@v4
- name: Start Cloud runners
id: start-cloud-runner
uses: kontainapp/[email protected]
with:
mode: start
github-token: ${{ secrets.GH_TOKEN }}
runner-user: kontain
subnet: "10.0.0.0"
public-keys-dir: ${{ github.workspace }}/cloud/ssh
ec2-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
ec2-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
ec2-region: "us-east-2"
ec2-image: "L0BaseImage"
ec2-instance-type: "m5.xlarge"
ec2-vpc-name: "github-runner"
az-subscription-id: ${{ secrets.SP_SUBSCRIPTION_ID }}
az-client-id: ${{ secrets.SP_APPID }}
az-secret: ${{ secrets.SP_PASSWORD }}
az-tenant-id: ${{ secrets.SP_TENANT }}
az-image: "auto-github-runner:L0BaseImage"
az-location: "westus"
az-vm-size: "Standard_D4s_v5"