GitHub Action Runner
Action Runner Controller
설치
helm pull oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set-controller \
--version 0.9.1
helm show values oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set-controller \
--version 0.9.1 \
> gha-runner-scale-set-controller-0.9.1.yaml
helm template gha-controller gha-runner-scale-set-controller-0.9.1.tgz \
-n github \
-f gha-runner-scale-set-controller-values.yaml \
> gha-controller.yaml
helm upgrade -i gha-controller gha-runner-scale-set-controller-0.9.1.tgz \
--history-max 5 \
-n github \
-f gha-runner-scale-set-controller-values.yaml
AutoscalingRunnerSet
인증관련 준비
- Fine-grained token
- classic token
- Organization permissions
Self-hosted runners: Read and write
권한이 필요합니다.
repoadmin:org
권한이 필요합니다.
생성
helm pull oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set \
--version 0.9.1
helm show values oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set \
--version 0.9.1 \
> gha-runner-scale-set-0.9.1.yaml
gha-runner-scale-set-values.yaml
githubConfigUrl: https://github.com/<repo|org|enter>
githubConfigSecret:
github_token: <token>
runnerGroup: "default"
runnerScaleSetName: ""
runnerScaleSetName- GitHub Action 설정 파일의
.jobs.<jobName>.runs-on에 사용될 값입니다. - 설정하지 않으면
.Release.Name이 사용됩니다.
- GitHub Action 설정 파일의
helm template gha-runner gha-runner-scale-set-0.9.1.tgz \
-n github \
-f gha-runner-scale-set-values.yaml \
> gha-runner.yaml
helm upgrade -i gha-runner gha-runner-scale-set-0.9.1.tgz \
--history-max 5 \
-n github \
-f gha-runner-scale-set-values.yaml