BigW Consortium Gitlab

_shared_runners.html.haml 1.04 KB
Newer Older
1 2 3 4 5
%h3 Shared runners

.bs-callout.bs-callout-warning
  GitLab Runners do not offer secure isolation between projects that they do builds for. You are TRUSTING all GitLab users who can push code to project A, B or C to run shell scripts on the machine hosting runner X.
  %hr
6 7
  - if @ci_project.shared_runners_enabled
    = link_to toggle_shared_runners_ci_project_path(@ci_project), class: 'btn btn-warning', method: :post do
8 9
      Disable shared runners
  - else
10
    = link_to toggle_shared_runners_ci_project_path(@ci_project), class: 'btn btn-success', method: :post do
11 12 13 14 15 16 17 18 19
      Enable shared runners
    for this project

- if @shared_runners_count.zero?
  This application has no shared runners yet.
  Please use specific runners or ask administrator to create one
- else
  %h4.underlined-title Available shared runners - #{@shared_runners_count}
  %ul.bordered-list.available-shared-runners
20
    = render partial: 'runner', collection: @shared_runners, as: :runner
21 22 23
  - if @shared_runners_count > 10
    .light
      and #{@shared_runners_count - 10} more...