What are CI/CD variables, and what are the protected, masked and file types?
IntermediateConceptGitLab CI
Answer
Variables are set in .gitlab-ci.yml, the project/group/instance settings, or via the API, and are exported to the job. Protected variables are only exposed to pipelines on protected branches/tags. Masked variables are hidden in job logs (value must meet masking rules such as minimum 8 characters). File type variables write the value to a temp file and expose its path, which suits kubeconfigs and certificates. Newer option: Masked and hidden to hide the value in settings UI as well.
More on GitLab CI
How does GitLab CI/CD work at a high level?BeginnerWhat is a GitLab Runner and what executors exist?IntermediateWhat are the types of runners (shared, group, project) and tags?IntermediateHow do `rules:` work and how do they replace `only/except`?IntermediateWhat are workflow rules and how do they prevent duplicate pipelines?AdvancedHow do artifacts and cache differ in GitLab CI?Intermediate