diff --git a/README.md b/README.md index 7e97ef2..1d4dcbb 100644 --- a/README.md +++ b/README.md @@ -146,6 +146,7 @@ GITEA_RUNNER_JOB_CONTAINER_NETWORK|`bridge`|Docker network to use with job conta GITEA_RUNNER_JOB_CONTAINER_PRIVILEGED|`false`|Whether to run jobs in containers with privileged mode which is required for **Docker-in-Docker** aka **dind** GITEA_RUNNER_JOB_CONTAINER_OPTIONS|``|Additional container launch options (eg, --add-host=my.gitea.url:host-gateway) GITEA_RUNNER_JOB_CONTAINER_WORKDIR_PARENT|`/workspace`|The parent directory of a job's working directory. +GITEA_RUNNER_JOB_CONTAINER_FORCE_PULL|`false`|Pull docker images even if already present GITEA_RUNNER_JOB_TIMEOUT|`3h`|The maximum time a job can run before it is cancelled GITEA_RUNNER_ENV_VAR_**N**_NAME|``|Name of the **N**-th extra environment variable to be passed to Job containers, e.g. `GITEA_RUNNER_ENV_VAR_1_NAME=MY_AUTH_TOKEN` GITEA_RUNNER_ENV_VAR_**N**_VALUE|``|Value of the **N**-th extra environment variable to be passed to Job containers, e.g. `GITEA_RUNNER_ENV_VAR_1_VALUE=SGVsbG8gbXkgZnJpZW5kIQ==` diff --git a/image/config.template.yaml b/image/config.template.yaml index 39a3ed1..5d5ed5b 100644 --- a/image/config.template.yaml +++ b/image/config.template.yaml @@ -1,4 +1,4 @@ -# based on https://gitea.com/gitea/act_runner/src/tag/v0.2.4/internal/pkg/config/config.example.yaml +# based on https://gitea.com/gitea/act_runner/src/tag/v0.2.6/internal/pkg/config/config.example.yaml log: # The level of logging, can be trace, debug, info, warn, error, fatal @@ -55,7 +55,7 @@ cache: # 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:-} + external_server: '${ACT_CACHE_SERVER_EXTERNAL_URL:-}' container: # Specifies the network to which the container will connect. @@ -93,6 +93,7 @@ container: # If it's "-", act_runner will find an available docker host automatically, but the docker host won't be mounted to the job containers and service containers. # If it's not empty or "-", the specified docker host will be used. An error will be returned if it doesn't work. docker_host: '${GITEA_RUNNER_JOB_CONTAINER_DOCKER_HOST:-}' + force_pull: '${GITEA_RUNNER_JOB_CONTAINER_FORCE_PULL:-false}' host: # The parent directory of a job's working directory.