O Que É CI_REGISTRY_IMAGE?
CI_REGISTRY_IMAGE é o path base completo das imagens deste projeto no registry do GitLab.
CI_REGISTRY_IMAGE poupa você de construir o path do registry manualmente; anexe uma tag para enviar.
Exemplo
Faça build e envie uma imagem tagueada.
shell
docker build -t ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHORT_SHA} .Principais conclusões
- CI_REGISTRY_IMAGE é o path base da imagem do projeto.
- Anexe uma tag para enviar.
- Combina o host do registry e o path do projeto.
Guias relacionados
What Is CI_REGISTRY?CI_REGISTRY is the address of the GitLab Container Registry available to CI jobs. Learn how to log in and pus…
What Is CI_COMMIT_SHORT_SHA?CI_COMMIT_SHORT_SHA is the abbreviated commit hash in GitLab CI. Learn how it is used to tag builds and image…
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…