debian-mirror-gitlab/app/views/admin/application_settings/ci/_header.html.haml

21 lines
1.3 KiB
Text
Raw Normal View History

2020-06-23 00:09:42 +05:30
- expanded = local_assigns.fetch(:expanded)
%h4
= _('Variables')
2020-11-24 15:15:51 +05:30
= link_to sprite_icon('question-o', css_class: 'gl-vertical-align-baseline!'), help_page_path('ci/variables/README', anchor: 'custom-environment-variables'), target: '_blank', rel: 'noopener noreferrer'
2020-06-23 00:09:42 +05:30
2021-01-29 00:20:46 +05:30
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' }
2020-06-23 00:09:42 +05:30
= expanded ? _('Collapse') : _('Expand')
%p
2020-10-24 23:57:45 +05:30
= html_escape(_('Environment variables are applied to environments via the Runner. You can use environment variables for passwords, secret keys, etc. Make variables available to the running application by prepending the variable key with %{code_open}K8S_SECRET_%{code_close}. You can set variables to be:')) % { code_open: '<code>'.html_safe, code_close: '</code>'.html_safe }
2020-06-23 00:09:42 +05:30
%ul
%li
2020-10-24 23:57:45 +05:30
= html_escape(_('%{code_open}Protected%{code_close} variables are only exposed to protected branches or tags.')) % { code_open: '<code>'.html_safe, code_close: '</code>'.html_safe }
2020-06-23 00:09:42 +05:30
%li
2020-10-24 23:57:45 +05:30
= html_escape(_('%{code_open}Masked%{code_close} variables are hidden in job logs (though they must match certain regexp requirements to do so).')) % { code_open: '<code>'.html_safe, code_close: '</code>'.html_safe }
2020-06-23 00:09:42 +05:30
%p
= link_to _('More information'), help_page_path('ci/variables/README', anchor: 'instance-level-cicd-environment-variables')