- Start provision runner
- Get GitHub Apps's Public page from myshoes admin.
- e.g.)
https://github.com/apps/<GitHub Apps name>
or<GHES url>/github-apps/<GitHub Apps name>
- e.g.)
- Get Endpoint for myshoes from myshoes admin.
- e.g.)
<your_shoes_host>/target
- e.g.)
Please open GitHub Apps's Public page and install GitHub Apps to Organization or repository.
you need to register a target that repository or organization.
scope
: set target scope for an auto-scaling runner.- Repository example:
octocat/hello-worlds
- Organization example:
octocat
- Repository example:
resource_type
: set instance size for a runner.- We will describe later.
- Please teach it from myshoes admin.
Example (create a target):
$ curl -XPOST -d '{"scope": "octocat/hello-world", "resource_type": "micro"}' ${your_shoes_host}/target
You can check registered targets.
curl -XGET ${your_shoes_host}/target | jq .
[
{
"id": "477f6073-90d1-47d8-958f-4707cea61e8d",
"scope": "octocat",
"token_expired_at": "2006-01-02T15:04:05Z",
"resource_type": "micro",
"provider_url": "",
"status": "active",
"status_description": "",
"created_at": "2006-01-02T15:04:05Z",
"updated_at": "2006-01-02T15:04:05Z"
}
]
You can set resource_type
in target. So myshoes switch size of instance.
For example,
- In organization scope (
octocat
), want to set small size runner as anano
. - But specific repository (
octocat/huge-repository
), want to set big size runner as a4xlarge
.
So please configure it.
$ curl -XPOST -d '{"scope": "octocat", "resource_type": "nano"}' ${your_shoes_host}/target
$ curl -XPOST -d '{"scope": "octocat/huge-repository", "resource_type": "4xlarge"}' ${your_shoes_host}/target
$ curl -XGET ${your_shoes_host}/target | jq .
[
{
"id": "477f6073-90d1-47d8-958f-4707cea61e8d",
"scope": "octocat",
"token_expired_at": "2006-01-02T15:04:05Z",
"resource_type": "nano",
"provider_url": "",
"status": "active",
"status_description": "",
"created_at": "2006-01-02T15:04:05Z",
"updated_at": "2006-01-02T15:04:05Z"
},
{
"id": "3775e3b6-08e0-4abc-830d-fd5325397de0",
"scope": "octocat/huge-repository",
"token_expired_at": "2006-01-02T15:04:05Z",
"resource_type": "4xlarge",
"provider_url": "",
"status": "active",
"status_description": "",
"created_at": "2006-01-02T15:04:05Z",
"updated_at": "2006-01-02T15:04:05Z"
}
]
In this configuration, myshoes will create under it.
- In
octocat/normal-repository
, will createnano
- In
octocat/normal-repository2
, will createnano
- In
octocat/huge-repository
, will create4xlarge
GitHub Actions need offline runner if queueing job. Please create an offline runner in the target repository.
Please delete a runner after registered.
After that, You can use cycloud-io/refresh-runner-action for automation.
Let's execute your jobs! 🏃🏃🏃