
The template fills the gaps and adds additional settings.All configuration provided with command line options and/or environment variables during the.The merging is done only for options that were empty. Is merged into the configuration of newly created ] entry in the regular config.toml When -template-config or TEMPLATE_CONFIG_FILE is used, the configuration of ] entry The configuration template file supports: TEMPLATE_CONFIG_FILE environment variable.To use a configuration template file, pass a path to the file to register with either This problem can be resolved with the usage of a configuration template file. Especially when more than one registrationįor the same GitLab Runner installation is done. Than ideal, error-prone, and not reliable.
#DOCKER NETWORK HOST BROKEN ON WINDOWS UPDATE#
To manually update the config.toml file after the runner was registered. In cases like these, the only solution was This is a problem for environments that are handled by any kind of automation, such as the Command line option support is intentionally unavailable for the settings for the.Environment variables do not support slices.Some runner configuration settings can’t be set with environment variables or command line options. The maximum allowed length is 255 characters. You can use it to add information related to runner maintenance. The -maintenance-note parameter was added in GitLab Runner 14.8. This value can later be toggled on or off in the project’s Settings > CI/CD menu.
#DOCKER NETWORK HOST BROKEN ON WINDOWS REGISTRATION#
Use this parameter during registration to create a protected runner.įor a protected runner, use the -access-level="ref_protected" parameter.įor an unprotected runner, use -access-level="not_protected" instead or leave the value undefined. It uses a registration API parameter introduced in GitLab 11.11. The -access-level parameter was added in GitLab Runner 12.0. Docker run -rm -v /srv/gitlab-runner/config:/etc/gitlab-runner gitlab/gitlab-runner register \ -non-interactive \ -executor "docker" \ -docker-image alpine:latest \ -url "" \ -registration-token "PROJECT_REGISTRATION_TOKEN" \ -description "docker-runner" \ -maintenance-note "Free-form maintainer notes about this runner" \ -tag-list "docker,aws" \ -run-untagged = "true" \ -locked = "false" \ -access-level = "not_protected"
