2018-09-18 04:42:11 -04:00
- breadcrumb_title _("CI/CD")
- page_title _("CI/CD")
2018-09-04 14:06:57 -04:00
- @content_class = "limit-container-width" unless fluid_layout
2021-03-16 17:11:53 -04:00
%section.settings.no-animate#js-ci-cd-variables{ class: ('expanded' if expanded_by_default?) }
.settings-header
= render 'admin/application_settings/ci/header', expanded: expanded_by_default?
.settings-content
- if ci_variable_protected_by_default?
%p.settings-message.text-center
2021-06-28 11:08:03 -04:00
- link_start = '<a href="%{url}">'.html_safe % { url: help_page_path('ci/variables/index', anchor: 'protect-a-cicd-variable') }
2021-03-16 17:11:53 -04:00
= s_('Environment variables on this GitLab instance are configured to be %{link_start}protected%{link_end} by default.').html_safe % { link_start: link_start, link_end: '</a>'.html_safe }
#js-instance-variables{ data: { endpoint: admin_ci_variables_path, group: 'true', maskable_regex: ci_variable_maskable_regex, protected_by_default: ci_variable_protected_by_default?.to_s} }
2020-06-11 11:08:36 -04:00
2018-09-19 06:57:57 -04:00
%section.settings.as-ci-cd.no-animate#js-ci-cd-settings{ class: ('expanded' if expanded_by_default?) }
2018-09-04 14:06:57 -04:00
.settings-header
%h4
= _('Continuous Integration and Deployment')
2020-11-16 13:09:15 -05:00
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' }
2018-09-19 06:57:57 -04:00
= expanded_by_default? ? _('Collapse') : _('Expand')
2018-09-04 14:06:57 -04:00
%p
2021-06-14 20:10:11 -04:00
= _('Customize CI/CD settings, including Auto DevOps, shared runners, and job artifacts.')
2018-09-04 14:06:57 -04:00
.settings-content
= render 'ci_cd'
2019-06-13 16:41:27 -04:00
= render_if_exists 'admin/application_settings/required_instance_ci_setting', expanded: expanded_by_default?
2020-02-25 22:09:07 -05:00
= render_if_exists 'admin/application_settings/package_registry', expanded: expanded_by_default?
2018-09-04 14:06:57 -04:00
- if Gitlab.config.registry.enabled
2018-09-19 06:57:57 -04:00
%section.settings.as-registry.no-animate#js-registry-settings{ class: ('expanded' if expanded_by_default?) }
2018-09-04 14:06:57 -04:00
.settings-header
%h4
= _('Container Registry')
2020-11-16 13:09:15 -05:00
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' }
2018-09-19 06:57:57 -04:00
= expanded_by_default? ? _('Collapse') : _('Expand')
2018-09-04 14:06:57 -04:00
%p
= _('Various container registry settings.')
.settings-content
= render 'registry'
2021-06-21 17:08:33 -04:00
- if Feature.enabled?(:runner_registration_control)
%section.settings.as-runner.no-animate#js-runner-settings{ class: ('expanded' if expanded_by_default?) }
.settings-header
%h4
= s_('Runners|Runner registration')
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' }
= expanded_by_default? ? 'Collapse' : 'Expand'
.settings-content
= render 'runner_registrars_form'