From 8eafdafdda25071dcad4ce143d5c65c1ca278730 Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Wed, 20 Jul 2016 14:00:25 +0200 Subject: Fix review comments --- app/models/project.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'app/models/project.rb') diff --git a/app/models/project.rb b/app/models/project.rb index 71e22087187..a2a91888a54 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -1182,7 +1182,10 @@ class Project < ActiveRecord::Base { key: 'CI_REGISTRY', value: Gitlab.config.registry.host_port, public: true } ] - variables << { key: 'CI_REGISTRY_IMAGE', value: container_registry_repository_url, public: true } if container_registry_enabled? + if container_registry_enabled? + variables << { key: 'CI_REGISTRY_IMAGE', value: container_registry_repository_url, public: true } + end + variables end -- cgit v1.2.1