add ACT_CACHE_SERVER_EXTERNAL_URL environment variable

This commit is contained in:
sebthom 2023-07-28 18:49:40 +02:00
parent e0e12392a6
commit 630cd3a22c
2 changed files with 7 additions and 3 deletions

View File

@ -155,12 +155,12 @@ GITEA_RUNNER_ACTION_CACHE_DIR|`/data/cache/actions`|Path to cache cloned actions
#### Embedded cache server: #### Embedded cache server:
Name|Default Value|Description Name|Default Value|Description
----|-------------|----------- ----|-------------|-----------
ACT_CACHE_SERVER_ENABLED|`true`| Enable the embedded cache service to use `actions/cache` in jobs ACT_CACHE_SERVER_ENABLED|`true`| Enable the use of an embedded or external cache server with `actions/cache` in jobs
ACT_CACHE_SERVER_EXTERNAL_URL|`<empty>`|URL to an external cache server. If specified, act_runner will use this URL as the ACTIONS_CACHE_URL instead of starting an embedded server. The URL should end with "/".
ACT_CACHE_SERVER_DIR|`/data/cache/server`| The directory to store the cache data ACT_CACHE_SERVER_DIR|`/data/cache/server`| The directory to store the cache data
ACT_CACHE_SERVER_HOST|`<empty>`| The IP address or hostname via which the job containers can reach the cache server. Leave empty for automatic detection ACT_CACHE_SERVER_HOST|`<empty>`| The IP address or hostname via which the job containers can reach the cache server. Leave empty for automatic detection
ACT_CACHE_SERVER_PORT|`0`|The TCP port of the cache server. `0` means to use a random, available port ACT_CACHE_SERVER_PORT|`0`|The TCP port of the cache server. `0` means to use a random, available port
## <a name="license"></a>License ## <a name="license"></a>License
All files in this repository are released under the [Apache License 2.0](LICENSE.txt). All files in this repository are released under the [Apache License 2.0](LICENSE.txt).

View File

@ -1,4 +1,4 @@
# based on https://gitea.com/gitea/act_runner/src/tag/v0.2.3/internal/pkg/config/config.example.yaml # based on https://gitea.com/gitea/act_runner/src/tag/v0.2.4/internal/pkg/config/config.example.yaml
log: log:
# The level of logging, can be trace, debug, info, warn, error, fatal # The level of logging, can be trace, debug, info, warn, error, fatal
@ -52,6 +52,10 @@ cache:
# The port of the cache server. # The port of the cache server.
# 0 means to use a random available port. # 0 means to use a random available port.
port: ${ACT_CACHE_SERVER_PORT:-0} port: ${ACT_CACHE_SERVER_PORT:-0}
# The external cache server URL. Valid only when enable is true.
# If it's specified, act_runner will use this URL as the ACTIONS_CACHE_URL rather than start a server by itself.
# The URL should generally end with "/".
external_server: ${ACT_CACHE_SERVER_EXTERNAL_URL:-}
container: container:
# Specifies the network to which the container will connect. # Specifies the network to which the container will connect.