Bookmarks

Artifact repository

A server-side store where a team keeps build outputs under permanent versions: libraries, packages and container images.

Also: artifact store, binary repository, binary repository manager

checked 9 Nov

All terms

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

ArtifactExample
Libraryinternal package common-utils 2.3.0 in wheel format
Container imageapp:1.4.2 in OCI format
Application packageapp_1.4.2.deb, Helm chart
Built codearchive 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 ImagePullBackOff status.
bashThe build publishes the image to your own registry, and deployment pulls it from there
docker tag app:1.4.2 registry.example.com/app:1.4.2docker push registry.example.com/app:1.4.2

Typical 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 pages

Verified 9 Nov

Not to be confused with

what it is mixed up with and how it differs

  • GitOps

    GitOps keeps in Git a description of which version should be running; the artifact repository keeps the builds themselves, from which that state is deployed.

In depth in the references

where the topic is covered in detail

Appears in the references