As we reevaluate how to best support and maintain Staging Ref in the future, we encourage development teams using this environment to highlight their use cases in the following issue: https://gitlab.com/gitlab-com/gl-infra/software-delivery/framework/software-delivery-framework-issue-tracker/-/issues/36.

Skip to content
Snippets Groups Projects
Commit 24dda4a8 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Merge pull request #91 from raphendyr/patch-1

Replace build in home folder with environment
parents 5cab604c 3f513645
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -7,12 +7,16 @@ class GitlabConfig
@config = YAML.load_file(File.join(ROOT_PATH, 'config.yml'))
end
def home
ENV['HOME']
end
def repos_path
@config['repos_path'] ||= "/home/git/repositories"
@config['repos_path'] ||= File.join(home, "repositories")
end
def auth_file
@config['auth_file'] ||= "/home/git/.ssh/authorized_keys"
@config['auth_file'] ||= File.join(home, ".ssh/authorized_keys")
end
def gitlab_url
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment