76 lines
4.1 KiB
Text
76 lines
4.1 KiB
Text
- @content_class = "limit-container-width" unless fluid_layout
|
|
- page_title _("CI / CD Settings")
|
|
- page_title _("CI / CD")
|
|
|
|
- expanded = expanded_by_default?
|
|
- general_expanded = @project.errors.empty? ? expanded : true
|
|
|
|
%section.settings#js-general-pipeline-settings.no-animate{ class: ('expanded' if general_expanded), data: { qa_selector: 'general_pipelines_settings_content' } }
|
|
.settings-header
|
|
%h4
|
|
= _("General pipelines")
|
|
%button.btn.js-settings-toggle{ type: 'button' }
|
|
= expanded ? _('Collapse') : _('Expand')
|
|
%p
|
|
= _("Customize your pipeline configuration, view your pipeline status and coverage report.")
|
|
.settings-content
|
|
= render 'form'
|
|
|
|
%section.settings#autodevops-settings.no-animate{ class: ('expanded' if expanded), data: { qa_selector: 'autodevops_settings_content' } }
|
|
.settings-header
|
|
%h4
|
|
= s_('CICD|Auto DevOps')
|
|
%button.btn.btn-default.js-settings-toggle{ type: 'button' }
|
|
= expanded ? _('Collapse') : _('Expand')
|
|
%p
|
|
- auto_devops_url = help_page_path('topics/autodevops/index')
|
|
- quickstart_url = help_page_path('topics/autodevops/quick_start_guide')
|
|
- auto_devops_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: auto_devops_url }
|
|
- quickstart_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: quickstart_url }
|
|
= s_('AutoDevOps|Auto DevOps can automatically build, test, and deploy applications based on predefined continuous integration and delivery configuration. %{auto_devops_start}Learn more about Auto DevOps%{auto_devops_end} or use our %{quickstart_start}quick start guide%{quickstart_end} to get started right away.').html_safe % { auto_devops_start: auto_devops_start, auto_devops_end: '</a>'.html_safe, quickstart_start: quickstart_start, quickstart_end: '</a>'.html_safe }
|
|
.settings-content
|
|
= render 'autodevops_form', auto_devops_enabled: @project.auto_devops_enabled?
|
|
|
|
= render_if_exists 'projects/settings/ci_cd/protected_environments', expanded: expanded
|
|
|
|
%section.settings.no-animate#js-runners-settings{ class: ('expanded' if expanded), data: { qa_selector: 'runners_settings_content' } }
|
|
.settings-header
|
|
%h4
|
|
= _("Runners")
|
|
%button.btn.js-settings-toggle{ type: 'button' }
|
|
= expanded ? _('Collapse') : _('Expand')
|
|
%p
|
|
= _("Runners are processes that pick up and execute jobs for GitLab. Here you can register and see your Runners for this project.")
|
|
= link_to s_('More information'), help_page_path('ci/runners/README')
|
|
.settings-content
|
|
= render 'projects/runners/index'
|
|
|
|
%section.qa-variables-settings.settings.no-animate#js-cicd-variables-settings{ class: ('expanded' if expanded), data: { qa_selector: 'variables_settings_content' } }
|
|
.settings-header
|
|
= render 'ci/variables/header', expanded: expanded
|
|
.settings-content
|
|
= render 'ci/variables/index', save_endpoint: project_variables_path(@project)
|
|
|
|
%section.settings.no-animate#js-pipeline-triggers{ class: ('expanded' if expanded) }
|
|
.settings-header
|
|
%h4
|
|
= _("Pipeline triggers")
|
|
%button.btn.js-settings-toggle{ type: 'button' }
|
|
= expanded ? _('Collapse') : _('Expand')
|
|
%p
|
|
= _("Triggers can force a specific branch or tag to get rebuilt with an API call. These tokens will impersonate their associated user including their access to projects and their project permissions.")
|
|
.settings-content
|
|
= render 'projects/triggers/index'
|
|
|
|
- if settings_container_registry_expiration_policy_available?(@project)
|
|
%section.settings.no-animate#js-registry-policies{ class: ('expanded' if expanded) }
|
|
.settings-header
|
|
%h4
|
|
= _("Cleanup policy for tags")
|
|
%button.btn.js-settings-toggle{ type: 'button' }
|
|
= expanded ? _('Collapse') : _('Expand')
|
|
%p
|
|
= _("Save space and find tags in the Container Registry more easily. Enable the cleanup policy to remove stale tags and keep only the ones you need.")
|
|
= link_to _('More information'), help_page_path('user/packages/container_registry/index', anchor: 'cleanup-policy', target: '_blank', rel: 'noopener noreferrer')
|
|
.settings-content
|
|
= render 'projects/registry/settings/index'
|