Launch a self-hosted runner with the flag "--ephemeral" via AWS Batch.
It will be automatically terminated under any of the following conditions of the instance.
- The processing of the first job is finished
- I did not receive a job for a certain period of time after starting (default:120sec)
- this repository fork
- Note:
github self hosted runner
- Expiration:
<Any>
- Select scopes:
repo
- run terraform
$ cd regist-secret-key
$ terraform init
$ terraform plan
$ terraform apply
var.github_personal_access_token
Enter a value: `<Github Personal access token>`
$ cd ..
- run terraform
./generate-region.sh
$ cd terraform
$ terraform init
$ terraform plan
$ terraform apply
var.github_account
Inputs github user or organization or '*'.
Enter a value:
var.github_repository
Inputs repository or '*'.
Enter a value:
$ cd ..
- memo Value of
AWS_ROLE_ARN
.
- Key
- AWS_ROLE_ARN
- Value
<memo of Step4>
- run .github/workflows/updateSelfHostRunner.yml on forked repository
- run .github/workflows/hello.yml on forked repository