Newer
Older
"gitlab.com/gitlab-org/gitlab-ci-multi-runner/helpers"
Kamil Trzcinski
committed
func getDefaultConfigDirectory() string {
Kamil Trzcinski
committed
return "/etc/gitlab-runner"
} else if homeDir := helpers.GetHomeDir(); homeDir != "" {
Kamil Trzcinski
committed
return filepath.Join(homeDir, ".gitlab-runner")
} else if currentDir := helpers.GetCurrentWorkingDirectory(); currentDir != "" {
Kamil Trzcinski
committed
return currentDir
panic("Cannot get default config file location")