Closed jlsalmon closed 1 year ago
Unfortunately, GitLab Runner does not pass these fields as variables to custom executors.
We have a --cache-dir
command-line argument for config
stage for working around this, and I've added --builds-dir
command-line argument in https://github.com/cirruslabs/gitlab-tart-executor/pull/27.
Excellent, thanks @edigaryev for the swift and effective response, this should do the trick 👍
Hello,
I would like to be able to explicitly configure the
builds_dir
andcache_dir
inconfig.toml
to point to host-mounted directories, so I can persist my sources and caches across builds.Currently the
builds_dir
andcache_dir
options are ignored by the Tart executor, which overrides them to/private/tmp
(unlessTART_EXECUTOR_HOST_DIR
is supplied, in which case a fixed-namehostdir
directory is mounted from a generated tempdir, which is wiped at the end of the build).This is something that's already possible with the built-in
docker
executor, for example:I would expect to be able to do the same with the tart executor:
Support for arbitrary host mounts was already added in #24, so I think it should only be a short hop to support this.