2018-12-05 23:21:45 +05:30
- breadcrumb_title _("CI/CD")
- page_title _("CI/CD")
2023-03-04 22:38:38 +05:30
- add_page_specific_style 'page_bundles/settings'
2018-12-05 23:21:45 +05:30
- @content_class = "limit-container-width" unless fluid_layout
2021-04-29 21:17:54 +05:30
%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
2023-03-17 16:20:25 +05:30
- link_start = '<a href="%{url}">'.html_safe % { url: help_page_path('ci/variables/index', anchor: 'protect-a-cicd-variable') }
2021-04-29 21:17:54 +05:30
= 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 }
2022-11-25 23:54:43 +05:30
#js-instance-variables{ data: { endpoint: admin_ci_variables_path, maskable_regex: ci_variable_maskable_regex, protected_by_default: ci_variable_protected_by_default?.to_s} }
2020-06-23 00:09:42 +05:30
2018-12-05 23:21:45 +05:30
%section.settings.as-ci-cd.no-animate#js-ci-cd-settings{ class: ('expanded' if expanded_by_default?) }
.settings-header
2022-08-13 15:12:31 +05:30
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
2018-12-05 23:21:45 +05:30
= _('Continuous Integration and Deployment')
2022-07-23 23:45:48 +05:30
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
2018-12-05 23:21:45 +05:30
= expanded_by_default? ? _('Collapse') : _('Expand')
%p
2021-09-04 01:27:46 +05:30
= _('Customize CI/CD settings, including Auto DevOps, shared runners, and job artifacts.')
2022-06-21 17:19:12 +05:30
= render 'ci_cd'
2018-12-05 23:21:45 +05:30
2019-09-04 21:01:54 +05:30
= render_if_exists 'admin/application_settings/required_instance_ci_setting', expanded: expanded_by_default?
2020-04-08 14:13:33 +05:30
= render_if_exists 'admin/application_settings/package_registry', expanded: expanded_by_default?
2018-12-05 23:21:45 +05:30
- if Gitlab.config.registry.enabled
%section.settings.as-registry.no-animate#js-registry-settings{ class: ('expanded' if expanded_by_default?) }
.settings-header
2022-08-13 15:12:31 +05:30
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
2018-12-05 23:21:45 +05:30
= _('Container Registry')
2022-07-23 23:45:48 +05:30
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
2018-12-05 23:21:45 +05:30
= expanded_by_default? ? _('Collapse') : _('Expand')
%p
= _('Various container registry settings.')
.settings-content
= render 'registry'
2021-09-30 23:02:18 +05:30
2022-11-25 23:54:43 +05:30
%section.settings.as-runner.no-animate#js-runner-settings{ class: ('expanded' if expanded_by_default?) }
.settings-header
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
= s_('Runners|Runner registration')
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
= expanded_by_default? ? 'Collapse' : 'Expand'
.settings-content
= render 'runner_registrars_form'