The central place where CI publishes build outputs and where deployment takes them from. One build yields one artifact under a permanent version: the same file passes the tests and reaches production, and a rollback installs the previous version again.
What it stores
| Artifact | Example |
|---|---|
| Library | internal package common-utils 2.3.0 in wheel format |
| Container image | app:1.4.2 in OCI format |
| Application package | app_1.4.2.deb, Helm chart |
| Built code | archive app-1.4.2.tgz, test and analysis reports |
Role in the pipeline
- A build on a CI agent ends with the artifact being published to the repository under a unique version.
- Environments receive software only from there: nothing built on a laptop or left behind on a build agent is installed into production.
- A build cache on a CI agent is no substitute for the repository: agents are cleaned regularly, while the version history is needed at all times.
- An artifact never changes after publication: rebuilding “the same version” is not possible.
- If an artifact is unavailable, deployment stalls: Kubernetes delays starting the pod with the
ImagePullBackOffstatus.
docker tag app:1.4.2 registry.example.com/app:1.4.2docker push registry.example.com/app:1.4.2Typical solutions
- Sonatype Nexus Repository and JFrog Artifactory are universal repositories: they hold packages from many ecosystems and images at the same time.
- Git platform registries — GitLab Container Registry and others: they store images alongside the code.
- Cloud services — AWS ECR, Google Artifact Registry, Azure Container Registry.
- Harbor — a self-hosted registry: vulnerability scanning, signing, access control; the open-source implementation of the registry is CNCF Distribution, formerly the Docker Registry project.
As well as your own artifacts, these servers also cache external packages from the public Maven, npm and PyPI repositories: builds depend less on the outside network and on how long a third-party service keeps packages.
Sources
the term is written from these pagesVerified 9 Nov