Artifact promotion and delivery
Build once, promote the same artifact
A delivery pipeline turns reviewed source into a tested artifact and releases that artifact to an environment. A container image is the packaged application; a Deployment describes which image should run. Continuous integration (CI) checks changes frequently. Continuous delivery keeps a releasable artifact ready; production deployment may still need an approval. A reliable pipeline builds once, records the resulting image digest, tests it, checks security evidence, and promotes that same digest instead of rebuilding for each environment.
A digest is not a tag
Imagine the catalog team builds two revisions. A tag such as stable can be moved to another image, while a digest identifies immutable content. A multi-platform image index digest identifies the index; the runtime selects a platform-specific manifest. Match platform and provenance in the release evidence. A digest alone proves neither safety nor who built it. The following references are fictional, intentionally non-resolvable and not suitable for deployment.
approved: registry.example.invalid/catalog@sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaacandidate: registry.example.invalid/catalog@sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbChoose the pull policy explicitly
IfNotPresent permits a cached image; Always asks the runtime to resolve the image on each start and may reuse cached layers. Never requires the image locally. Defaults are assigned when an object is first created and do not automatically change when its image reference changes later. Use an explicit policy suited to the registry and lab. A registry may require a namespace-local imagePullSecret or a configured credential mechanism; avoid embedding real credentials or printing them in pipeline logs.
containers: - name: catalog image: registry.example.invalid/catalog@sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb imagePullPolicy: IfNotPresentPromotion evidence and approval
A useful release record binds source revision, image digest, target platform, test results, scan report, signature or attestation verification, approval and target environment. A scan is evidence about known issues at a point in time, not proof of safety. Signatures must be checked against a trusted identity and policy. Store evidence references and retain the prior approved digest for recovery. In a real pipeline the artifact must exist in the target registry and permissions must be tested. The mock fixture below checks only the logical gates; it does not build, scan, sign or publish an image.
source → build → test → scan → sign/publish → verify → approve → deploy same image digest throughoutPractice: detect a substituted image
Open lab-fixtures/application-delivery/promotion-cases.json. Compare tested and proposed digests, platform, verification and approval. A rebuilt artifact or changed digest needs its own evidence; an absent approval is not a pass. Explain why a green test of digest A cannot approve digest B. Next, learn how to limit exposure while rolling out an approved artifact.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Artifact promotion and delivery — knowledge check
Reason about application delivery using offline fixtures.
What should be promoted after testing?
What does a digest establish?
What can Always reuse?
When a Deployment image changes, what happens to an already defaulted imagePullPolicy?
A candidate digest differs from the tested digest. What should the gate do?