From 8ffc797b1f184d17758dfd00390ac41ada142712 Mon Sep 17 00:00:00 2001 From: sneakers-the-rat Date: Sat, 29 Jun 2024 01:26:08 -0700 Subject: [PATCH] volume passthrough --- forgejo/runner/config.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/forgejo/runner/config.yaml b/forgejo/runner/config.yaml index f4390f3..5b0c41d 100644 --- a/forgejo/runner/config.yaml +++ b/forgejo/runner/config.yaml @@ -64,7 +64,7 @@ container: # Whether to use privileged mode or not when launching task containers (privileged mode is required for Docker-in-D> privileged: false # And other options to be used when the container is started (eg, --add-host=my.forgejo.url:host-gateway). - options: '-v /artifacts:/artifacts' + options: '--volume /artifacts:/artifacts' # The parent directory of a job's working directory. # If it's empty, /workspace will be used. workdir_parent: @@ -77,7 +77,8 @@ container: # If you want to allow any volume, please use the following configuration: # valid_volumes: # - '**' - valid_volumes: [] + valid_volumes: + - '**' # overrides the docker client host with the specified one. # If it's empty, act_runner will find an available docker host automatically. # If it's "-", act_runner will find an available docker host automatically, but the docker host won't be mounted to>