diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-07-20 14:00:25 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-07-20 14:00:25 +0200 |
commit | 8eafdafdda25071dcad4ce143d5c65c1ca278730 (patch) | |
tree | 31af0b91f1ca79a182fe72118602915042ef3e59 /app/models/project.rb | |
parent | f62cbe618bc2a17bb4ed85179d42f223854cb1a5 (diff) | |
download | gitlab-ce-8eafdafdda25071dcad4ce143d5c65c1ca278730.tar.gz |
Fix review commentsci-predefined-variables
Diffstat (limited to 'app/models/project.rb')
-rw-r--r-- | app/models/project.rb | 5 |
1 files changed, 4 insertions, 1 deletions
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 |