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.

All CI/CD questions Roadmap: GitLab CI/CD

More on GitLab CI