2020-06-23 00:09:42 +05:30
- expanded = local_assigns.fetch(:expanded)
%h4
= _('Variables')
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
2021-03-11 19:13:27 +05:30
= _('Variables store information, like passwords and secret keys, that you can use in job scripts. All projects on the instance can use these variables.')
2021-09-30 23:02:18 +05:30
= link_to s_('Learn more.'), help_page_path('ci/variables/index', anchor: 'add-a-cicd-variable-to-an-instance'), target: '_blank', rel: 'noopener noreferrer'
2021-03-11 19:13:27 +05:30
%p
= _('Variables can be:')
2020-06-23 00:09:42 +05:30
%ul
%li
2022-07-16 23:28:13 +05:30
= html_escape(_('%{code_open}Protected:%{code_close} Only exposed to protected branches or protected tags.')) % { code_open: '<code>'.html_safe, code_close: '</code>'.html_safe }
2020-06-23 00:09:42 +05:30
%li
2021-03-11 19:13:27 +05:30
= html_escape(_('%{code_open}Masked:%{code_close} Hidden in job logs. Must match masking requirements.')) % { code_open: '<code>'.html_safe, code_close: '</code>'.html_safe }
2021-09-30 23:02:18 +05:30
= link_to _('Learn more.'), help_page_path('ci/variables/index', anchor: 'mask-a-cicd-variable'), target: '_blank', rel: 'noopener noreferrer'