O Que É CI_COMMIT_SHORT_SHA?
CI_COMMIT_SHORT_SHA são os primeiros 8 caracteres do SHA do commit em uma pipeline do GitLab.
O short SHA é a forma legível que você normalmente usa em tags de imagem e labels de build.
Exemplo
Faça push de uma imagem marcada pelo short SHA.
shell
docker push registry.example.com/app:${CI_COMMIT_SHORT_SHA}Principais conclusões
- CI_COMMIT_SHORT_SHA é o hash de commit de 8 caracteres.
- Forma legível para tags de imagem.
- Derivado de CI_COMMIT_SHA.
Guias relacionados
What Is CI_COMMIT_SHA?CI_COMMIT_SHA is the full commit hash that triggered a GitLab CI pipeline. Learn what it holds and how to use…
What Is CI_REGISTRY_IMAGE?CI_REGISTRY_IMAGE is the base image path for a project in the GitLab Container Registry. Learn how to tag ima…
What Is an Image Tag? Naming and Versioning ImagesAn image tag is a human-friendly, movable label on a repository like myapp:1.4. Learn tagging strategies, the…