diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-01 20:43:33 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-01 20:43:33 +0200 |
commit | 6e58e7ff7ce151fb7a8329faef69cd3a42194216 (patch) | |
tree | ba49009675efc0b3b11a3211f76bc0563072b97c /app | |
parent | 5a377d20d53a2b15229505c0f428f0d9b5925622 (diff) | |
download | gitlab-ce-6e58e7ff7ce151fb7a8329faef69cd3a42194216.tar.gz |
Use downcased path to container repository as this is expected path by Docker
Diffstat (limited to 'app')
-rw-r--r-- | app/models/project.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index c1d9bae44c9..13376da9948 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -313,17 +313,17 @@ class Project < ActiveRecord::Base return unless Gitlab.config.registry.enabled @container_registry_repository ||= begin - token = Auth::ContainerRegistryAuthenticationService.full_access_token(path_with_namespace) + token = Auth::ContainerRegistryAuthenticationService.full_access_token(path_with_namespace.downcase) url = Gitlab.config.registry.api_url host_port = Gitlab.config.registry.host_port registry = ContainerRegistry::Registry.new(url, token: token, path: host_port) - registry.repository(path_with_namespace) + registry.repository(path_with_namespace.downcase) end end def container_registry_repository_url if Gitlab.config.registry.enabled - "#{Gitlab.config.registry.host_port}/#{path_with_namespace}" + "#{Gitlab.config.registry.host_port}/#{path_with_namespace.downcase}" end end |