O Que É GITLAB_CI?
GITLAB_CI é sempre true quando um script está rodando dentro de um job do GitLab CI/CD.
Assim como a variável genérica CI, GITLAB_CI permite que ferramentas e scripts detectem que estão especificamente no GitLab CI e ajustem o comportamento.
Uso
Ramifique com base nela quando um script precisar se comportar de forma diferente no GitLab CI em comparação com local ou outro sistema de CI.
Principais conclusões
- GITLAB_CI é true dentro do GitLab CI.
- Detecta especificamente o ambiente do GitLab.
- Complementa a variável genérica CI.
Guias relacionados
What Is the CI Variable?CI is a boolean environment variable set to true on virtually every CI system, including GitHub Actions. Lear…
What Is CI_PIPELINE_SOURCE?CI_PIPELINE_SOURCE is how a GitLab CI pipeline was triggered: push, merge_request_event, schedule, and more.…
What Is a CI Runner? Managed vs Self-Hosted ExplainedA CI runner is the machine that executes your pipeline jobs. Learn how runners work, the difference between h…