gitlab-runner register on macOS updates wrong config.toml
Summary
gitlab-runner v14.0.0 register
on macOS updates the /etc/gitlab-runner/config.toml
file instead of the ~/.gitlab-runner/config.toml
file with the [[runner]]
section.
Steps to reproduce
- Run
gitlab-runner register
and complete the registration - Do a
gitlab-runner list
and no runners are listed -
sudo cat /etc/gitlab-runner/config.toml
and the new registration was added to this file.
What is the current bug behavior?
The register
option uses the Linux default config file location.
What is the expected correct behavior?
It should default to macOS default config file location.
Results of GitLab environment info
Expand for output related to GitLab environment info
gitlab-runner start Runtime platform arch=amd64 os=darwin pid=10932 revision=3b6f852e version=14.0.0
Results of GitLab application Check
N/A