feat: add GITEA_RUNNER_GITHUB_MIRROR env var
This commit is contained in:
parent
5b1f3b7a94
commit
457b67892c
|
|
@ -31,8 +31,8 @@ on: # https://docs.github.com/en/actions/reference/events-that-trigger-workflow
|
|||
- '.act*'
|
||||
- '.editorconfig'
|
||||
- '.git*'
|
||||
- '.github/ISSUE_TEMPLATE/*'
|
||||
- '.github/*.yml'
|
||||
- '.github/ISSUE_TEMPLATE/*'
|
||||
- '.github/workflows/stale.yml'
|
||||
workflow_dispatch:
|
||||
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows#workflow_dispatch
|
||||
|
|
|
|||
|
|
@ -284,6 +284,7 @@ GITEA_RUNNER_LOG_LEVEL|`info`|The level of logging, can be trace, debug, info, w
|
|||
GITEA_RUNNER_ENV_FILE|`/data/.env`|Extra environment variables to run jobs from a file
|
||||
GITEA_RUNNER_FETCH_TIMEOUT|`5s`|The timeout for fetching the job from the Gitea instance
|
||||
GITEA_RUNNER_FETCH_INTERVAL|`2s`|The interval for fetching the job from the Gitea instance
|
||||
GITEA_RUNNER_GITHUB_MIRROR|`<empty>`| Base URL to use instead of https://github.com when fetching GitHub Actions.
|
||||
GITEA_RUNNER_MAX_PARALLEL_JOBS|`1`|Maximum number of concurrently executed jobs
|
||||
GITEA_RUNNER_JOB_CONTAINER_DOCKER_HOST|`<empty>`|If empty, the available docker host is located automatically. If set to `-`, the available docker host is located automatically, but the docker host won't be mounted to the job containers. If it's any other value, the specified docker host will be used.
|
||||
GITEA_RUNNER_JOB_CONTAINER_NETWORK|`bridge`|Docker network to use with job containers. Can be `bridge`, `host`, `none`, or the name of a custom network
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# based on https://gitea.com/gitea/act_runner/src/tag/v0.2.12/internal/pkg/config/config.example.yaml
|
||||
# based on https://gitea.com/gitea/act_runner/src/tag/v0.2.13/internal/pkg/config/config.example.yaml
|
||||
|
||||
log:
|
||||
# The level of logging, can be trace, debug, info, warn, error, fatal
|
||||
|
|
@ -36,6 +36,11 @@ runner:
|
|||
fetch_timeout: '${GITEA_RUNNER_FETCH_TIMEOUT:-5s}'
|
||||
# The interval for fetching the job from the Gitea instance.
|
||||
fetch_interval: '${GITEA_RUNNER_FETCH_INTERVAL:-2s}'
|
||||
# The github_mirror of a runner is used to specify the mirror address of the github that pulls the action repository.
|
||||
# It works when something like `uses: actions/checkout@v4` is used and DEFAULT_ACTIONS_URL is set to github,
|
||||
# and github_mirror is not empty. In this case,
|
||||
# it replaces https://github.com with the value here, which is useful for some special network environments.
|
||||
github_mirror: '${GITEA_RUNNER_GITHUB_MIRROR:-}'
|
||||
# The labels of a runner are used to determine which jobs the runner can run, and how to run them.
|
||||
# Like: "macos-arm64:host" or "ubuntu-latest:docker://docker.gitea.com/runner-images:ubuntu-latest"
|
||||
# Find more images provided by Gitea at https://gitea.com/docker.gitea.com/runner-images .
|
||||
|
|
|
|||
Loading…
Reference in New Issue