github-actions-runner
所属分类:DevOps
开发工具:Shell
文件大小:11KB
下载次数:0
上传日期:2023-04-13 08:29:44
上 传 者:
sh-1993
说明: github操作运行器,,
(github-actions-runner,,)
文件列表:
.hadolint.yaml (31, 2023-04-13)
CODEOWNERS (19, 2023-04-13)
Dockerfile (2636, 2023-04-13)
LICENSE (11357, 2023-04-13)
entrypoint.sh (581, 2023-04-13)
scripts (0, 2023-04-13)
scripts\install-from-virtual-env (1241, 2023-04-13)
scripts\install-from-virtual-env-helpers (80, 2023-04-13)
scripts\install-runner (1229, 2023-04-13)
tag.sh (180, 2023-04-13)
[![Docker Repository on Quay](https://quay.io/repository/evryfs/github-actions-runner/status "Docker Repository on Quay")](https://quay.io/repository/evryfs/github-actions-runner)
Note: The master tag uses the virtual-environments setup from GHA, which is not in use by this project anymore - thus that image is no longer updated (only relevant for the master tagged image)
Use the myoung34-derivate image instead, which follows the myoung34-derivate branch (https://github.com/evryfs/github-actions-runner/tree/myoung34-derivate)
# github-actions-runner
Image for containerized github [actions runner](https://github.com/actions/runner).
Also see [the Kubernetes operator](https://github.com/evryfs/github-actions-runner-operator/).
## Usage
In order to try mimic as much as possible what is done in the [github-hosted runner](https://docs.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners) project, we try to reuse their installer scripts.
So this image will allow you to use the [installers](https://github.com/actions/virtual-environments/tree/main/images/linux/scripts/installers) from the official [virtual-environments](https://github.com/actions/virtual-environments) project.
But since the original project has been designed to be executed on real VM instead of Docker containers, some scripts can fail,
like the ones who try to install `snap` packages (since `snap` can't run on Docker).
Here you can find the [list of available installers](https://github.com/actions/virtual-environments/tree/main/images/linux/scripts/installers).
## Configurations
Github Actions Runner can be configured dynamically using env vars with the following prefix `ACTIONS_RUNNER_INPUT_`.
At the time of writing the configuration options are:
```
Config Options:
--unattended Disable interactive prompts for missing arguments. Defaults will be used for missing options
--url string Repository to add the runner to. Required if unattended
--token string Registration token. Required if unattended
--name string Name of the runner to configure (default 29b0***14cbea)
--runnergroup string Name of the runner group to add this runner to (defaults to the default runner group)
--labels string Extra labels in addition to the default: 'self-hosted,Linux,X***'
--work string Relative runner work directory (default _work)
--replace Replace any existing runner with the same name (default false)
```
So if you want set custom labels you just need to export this env var: `ACTIONS_RUNNER_INPUT_LABELS=foobar, 1234`
### Install packages
To run an installer script and its packages you can just simply run `install-from-virtual-env `. You can find
some examples on the Dockerfile.
近期下载者:
相关文件:
收藏者: