Definition
What it is
The artifact is what crosses the boundary between "the code" and "the environment". The source code lives in git; the artifact lives in a registry (Harbor, Artifactory, npm registry, Docker Hub, GitHub Packages, S3). The same artifact is deployed to staging, then to canary, then to production — never rebuilt in between.
Artifacts come in many shapes: a .jar (Java), a .whl (Python wheel), a .tgz (npm package), a .war (Java web app), a Docker image (registry.example.com/app:1.2.3@sha256:...), a tarball of a static site, a .deb or .rpm package, an .ipa (iOS), an .apk (Android), a .nupkg (NuGet). The unifying property is: an artifact is a file whose content is the same everywhere it lands.
Why it matters
Without artifacts, deployments rebuild the source at each environment, which means staging and production can run different code even when the source is the same (different compiler versions, different dependency resolutions, different timestamps). With artifacts, the pipeline builds once, signs the artifact, and promotes the exact same bytes through the environments. This is the "build once, deploy many" principle.
Artifact vs source vs package vs image
Aspect | Source | Package | Artifact | Image |
|---|---|---|---|---|
Produced by | You | A packager | A build | A container build |
Stored in | npm/pypi/... | Registry | Registry | |
Identified by | Name + version | Hash + version | ||
Typical use | Development | Distribution | Containerization |
The artifact lifecycle
graph LR S[Source] --> B[Build once] B --> A[Artifact] A --> R[Registry] R --> ST[Staging] R --> CA[Canary] R --> P[Production] ST --> D1[Deploy] CA --> D2[Deploy] P --> D3[Deploy] style A fill:#E8F5E9 style R fill:#FFF3E0
How to build artifacts that age well
Artifacts that age well
Build once, deploy many
Build in CI, promote the same artifact through staging → canary → production. Never rebuild for a different environment.
Sign the artifact
GPG, cosign, or platform-specific signing. A signed artifact can be verified before deploy; an unsigned one is a black box.
Version by content, not by tag
Tags move (
latest); digests do not.app@sha256:abc...is immutable;app:latestis not.Keep immutability
A registry that allows overwriting an artifact is a registry that cannot be audited. Make artifacts immutable at the registry level.
Prune old artifacts
A registry that keeps every artifact forever becomes huge and slow. Retention policies matter.
Common failures
Origin
The word comes from Latin: arte + factum, "made with skill". In the 1820s, archaeologists adopted it to describe objects made or shaped by humans (an arrowhead, a pot, a tool) as distinct from natural objects. In the 1990s, software engineering borrowed it for files produced by a build process — the "handmade" objects of the pipeline. The metaphor is exact: an artifact is something a process created, not something that occurred naturally.
An artifact is an immutable file produced by a build, stored in a registry, and deployed to an environment without being rebuilt.
— JFrog, *Artifacts 101*, 2024 (paraphrase)
Evidence
FAQ
- Artifact vs source?
Source is what you edit; artifact is what runs. The same source can produce different artifacts if the toolchain differs.
- Why sign artifacts?
To prove they came from your CI and were not tampered with. Unsigned artifacts are trust-by-hope.
- Should I rebuild for production?
No. Build once, deploy the same artifact everywhere.
- What is an immutable artifact?
One that cannot be overwritten in the registry. Every build produces a new digest.
Connections
JFrog (2024). What is an artifact? https://jfrog.com/learn/devops/what-is-an-artifact/
Open Container Initiative (2024). OCI Image Format Specification. https://github.com/opencontainers/image-spec
CNCF (2024). Cloud Native Glossary — Artifact. https://glossary.cncf.io/artifact/
Etymology
Origin: borrowed
arte(noun): Latin ablative of ars, "skill"factum(verb): Latin, "made"
Semantic network
● broader ● narrower ● related
Used in the garden
- 10 Obscure & Unconventional Web Artifacts: Digital Curiosities (2×)
- Beneath the Surface: The 10 Creepiest Digital Artifacts of the Internet's Shadow World (1×)
- 10 Obscure Web Artifacts: Digital Oddities & Surreal Nodes (1×)
- 10 Obscure Digital Enigmas: Curated Weird Web Artifacts (1×)
- 10 Banned Websites That Will Haunt Your Dreams (2026) (1×)
- 10 More Forbidden Websites: The Web's Darkest Secrets Exposed (1×)
- The Internet's Forbidden Attic: 10 Ancient Websites That Should Have Died (But Didn't) (1×)
- 10 Forbidden & Weird Websites You Can Still Visit (2026 Guide) (1×)
Sources
JFrog (2024). What is an artifact? https://jfrog.com/learn/devops/what-is-an-artifact/
Open Container Initiative (2024). OCI Image Format Specification. https://github.com/opencontainers/image-spec
CNCF (2024). Cloud Native Glossary — Artifact. https://glossary.cncf.io/artifact/