O Que É CI_COMMIT_REF_NAME?
CI_COMMIT_REF_NAME é o nome da branch ou tag que a pipeline está construindo.
CI_COMMIT_REF_NAME fornece o nome de ref amigável para condicionais, nomeação de environments e URLs com slug.
Nota
Para um valor seguro em URLs e nomes do Kubernetes, use CI_COMMIT_REF_SLUG, que coloca em minúsculas e sanitiza o nome.
Principais conclusões
- CI_COMMIT_REF_NAME é o nome da branch/tag.
- CI_COMMIT_REF_SLUG é a forma segura para URLs.
- Útil para rules e nomeação.
Guias relacionados
What Is CI_COMMIT_BRANCH?CI_COMMIT_BRANCH is the branch name in a GitLab CI branch pipeline. Learn when it is set versus empty.
What Is CI_COMMIT_TAG?CI_COMMIT_TAG is the tag name in a GitLab CI tag pipeline. Learn how to trigger release jobs with it.
What Is a Git Branch?What is a Git branch? Learn how branches are lightweight movable pointers, how they enable parallel work, and…