2018-05-09 03:37:51 -04:00
|
|
|
%h3
|
|
|
|
= _('Shared Runners')
|
2015-08-25 21:42:46 -04:00
|
|
|
|
2018-02-21 11:09:06 -05:00
|
|
|
.bs-callout.shared-runners-description
|
2018-02-02 13:39:55 -05:00
|
|
|
- if Gitlab::CurrentSettings.shared_runners_text.present?
|
|
|
|
= markdown_field(Gitlab::CurrentSettings.current_application_settings, :shared_runners_text)
|
2016-04-15 09:51:41 -04:00
|
|
|
- else
|
2015-11-10 16:23:49 -05:00
|
|
|
GitLab Shared Runners execute code of different projects on the same Runner
|
|
|
|
unless you configure GitLab Runner Autoscale with MaxBuilds 1 (which it is
|
|
|
|
on GitLab.com).
|
2015-08-25 21:42:46 -04:00
|
|
|
%hr
|
2015-12-04 06:55:23 -05:00
|
|
|
- if @project.shared_runners_enabled?
|
2018-02-21 11:09:06 -05:00
|
|
|
= link_to toggle_shared_runners_project_runners_path(@project), class: 'btn btn-close', method: :post do
|
2015-11-10 16:23:49 -05:00
|
|
|
Disable shared Runners
|
2015-08-25 21:42:46 -04:00
|
|
|
- else
|
2017-06-29 13:06:35 -04:00
|
|
|
= link_to toggle_shared_runners_project_runners_path(@project), class: 'btn btn-success', method: :post do
|
2015-11-10 16:23:49 -05:00
|
|
|
Enable shared Runners
|
2015-08-25 21:42:46 -04:00
|
|
|
for this project
|
|
|
|
|
|
|
|
- if @shared_runners_count.zero?
|
2018-05-09 03:37:51 -04:00
|
|
|
= _('This GitLab instance does not provide any shared Runners yet. Instance administrators can register shared Runners in the admin area.')
|
2015-08-25 21:42:46 -04:00
|
|
|
- else
|
2015-11-10 16:23:49 -05:00
|
|
|
%h4.underlined-title Available shared Runners : #{@shared_runners_count}
|
2015-08-25 21:42:46 -04:00
|
|
|
%ul.bordered-list.available-shared-runners
|
2017-01-06 10:23:32 -05:00
|
|
|
= render partial: 'projects/runners/runner', collection: @shared_runners, as: :runner
|