我正在尝试直接传递配置文件:
/nix/store/vlpgx026553awirk2mnkg5w01grdwpdh-gitlab-runner-11.9.2-bin/bin/gitlab-runner exec docker -config /nix/store/61v1axnzl4cbagp15a4mi46wga3ic1im-config.toml test
Runtime platform arch=amd64 os=linux pid=12594 revision=v11.9.2 version=11.9.2
Incorrect Usage: flag provided but not defined: -config
或滑动位置:
/nix/store/vlpgx026553awirk2mnkg5w01grdwpdh-gitlab-runner-11.9.2-bin/bin/gitlab-runner --config /nix/store/61v1axnzl4cbagp15a4mi46wga3ic1im-config.toml exec docker test
Incorrect Usage. flag provided but not defined: -config
根据https://docs.gitlab.com/runner/commands/#using-environment-variables和https://docs.gitlab.com/runner/commands/#configuration-file
大多数命令都接受一个参数来指定一个自定义 配置文件,让您拥有多个不同 一台机器上的配置。指定自定义配置 文件使用-c或--config标志,或使用CONFIG_FILE环境 变量。
应该可以吗?