Allow configuration of default platform if no runs-on labels match

This commit is contained in:
Mike
2025-01-26 19:49:15 -08:00
parent 8dfb805c62
commit 0957d88d06
4 changed files with 14 additions and 3 deletions

View File

@@ -41,6 +41,8 @@ runner:
- "ubuntu-latest:docker://gitea/runner-images:ubuntu-latest"
- "ubuntu-22.04:docker://gitea/runner-images:ubuntu-22.04"
- "ubuntu-20.04:docker://gitea/runner-images:ubuntu-20.04"
# If no labels match the job's runs-on, this will be used
default_platform: "gitea/runner-images:ubuntu-latest"
cache:
# Enable cache server to use actions/cache.
@@ -70,7 +72,7 @@ container:
# And other options to be used when the container is started (eg, --add-host=my.gitea.url:host-gateway).
options:
# The parent directory of a job's working directory.
# NOTE: There is no need to add the first '/' of the path as act_runner will add it automatically.
# NOTE: There is no need to add the first '/' of the path as act_runner will add it automatically.
# If the path starts with '/', the '/' will be trimmed.
# For example, if the parent directory is /path/to/my/dir, workdir_parent should be path/to/my/dir
# If it's empty, /workspace will be used.