summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-06-01 20:43:33 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2016-06-01 20:43:33 +0200
commit6e58e7ff7ce151fb7a8329faef69cd3a42194216 (patch)
treeba49009675efc0b3b11a3211f76bc0563072b97c /app
parent5a377d20d53a2b15229505c0f428f0d9b5925622 (diff)
downloadgitlab-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.rb6
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