summaryrefslogtreecommitdiff
path: root/app/models/project.rb
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-07-20 14:00:25 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2016-07-20 14:00:25 +0200
commit8eafdafdda25071dcad4ce143d5c65c1ca278730 (patch)
tree31af0b91f1ca79a182fe72118602915042ef3e59 /app/models/project.rb
parentf62cbe618bc2a17bb4ed85179d42f223854cb1a5 (diff)
downloadgitlab-ce-8eafdafdda25071dcad4ce143d5c65c1ca278730.tar.gz
Fix review commentsci-predefined-variables
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb5
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