diff options
author | Tomasz Maczukin <tomasz@maczukin.pl> | 2016-11-15 03:57:43 +0100 |
---|---|---|
committer | Tomasz Maczukin <tomasz@maczukin.pl> | 2016-11-16 13:31:02 +0100 |
commit | 596bbf670c95a513cce703dce756e957a143c596 (patch) | |
tree | 73d8c34ce54c0c313a49bc91fd6bc0a6c017b29c /lib | |
parent | 0934f8d5fcc7915ee99c54baacabb8f3bcb47ff3 (diff) | |
download | gitlab-ce-596bbf670c95a513cce703dce756e957a143c596.tar.gz |
Send registry_url with build data to GitLab Runner
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ci/api/entities.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ci/api/entities.rb b/lib/ci/api/entities.rb index 66c05773b68..e00d91a6b45 100644 --- a/lib/ci/api/entities.rb +++ b/lib/ci/api/entities.rb @@ -50,6 +50,10 @@ module Ci expose :variables expose :depends_on_builds, using: Build + + expose :registry_url, if: ->(_, _) { Gitlab.config.registry.enabled } do |_| + Gitlab.config.registry.host_port + end end class Runner < Grape::Entity |