Arezgitfield notes / engineering
Release engineeringUPDATED OCT 9, 2026

Build Once and Promote the Verified Release Artifact

Promote the same verified artifact across environments with immutable identity, separate configuration, architecture checks, and retained recovery evidence.

Arezgit Editorial5 min read
AREZGIT / FIELD NOTERELEASE ENGINEERING
A staging test proves less than expected when production receives a fresh build. Even with the same source commit, a changed dependency, base image, toolchain, or build setting can produce d
READ / VERIFY / APPLYTECHNICALLY REVIEWED

A staging test proves less than expected when production receives a fresh build. Even with the same source commit, a changed dependency, base image, toolchain, or build setting can produce different bytes. Promote the artifact that passed the gate instead of rebuilding it during deployment.

This guide covers artifact promotion across environments. It separates source identity, artifact identity, deployment configuration, and test evidence. Independent reproducible builds answer another question; promotion asks whether the deployed object is the one the release process actually verified.

Give the artifact an immutable identity

Build the candidate from an identified commit using recorded build inputs. Store the resulting artifact in the approved artifact repository and capture its content identity before testing or promotion decisions refer to it.

Docker's digest documentation distinguishes immutable content digests from tags that can be moved. Use an immutable identifier in the release manifest even when a human-readable version label is also present.

For a synthetic service release, the manifest names the source commit, version, artifact digest, build record, supported platform, and required configuration schema. These fields let a reviewer connect the compatibility decision to the executable object. A green test badge without that connection can belong to a different build.

Do not treat a digest as proof of trustworthy origin. It identifies content; signatures, provenance, and publisher policy establish different claims. Apply the distinctions in the guide to checksums and provenance before describing what the release evidence proves.

Attach test results to the built object

Run verification against the candidate artifact, not only source code in the build workspace. Start it through the relevant production entry point and exercise the required smoke and integration paths in an isolated environment.

Docker's test-before-push workflow shows testing built output before publishing it. Adapt the sequencing to your artifact system while preserving the relationship between the object tested and the object promoted.

Record which artifact identity each check used. If a test stage accidentally resolves a moving tag after another build publishes it, the evidence can be misattributed. Pin the tested object and read its identity back from the runtime or artifact repository when possible.

Source-level checks still matter. Type checking and unit tests can detect failures efficiently before an artifact exists. They complement artifact verification rather than establish that packaging, runtime files, permissions, and startup configuration are correct.

Separate deployment configuration from build inputs

Identify which settings are runtime configuration and which are compiled into the artifact. A browser bundle may contain an API origin at build time, while a server may read its origin from runtime configuration. Calling both "environment variables" hides that distinction.

If the frontend must be rebuilt for each environment, it is not the same-artifact promotion model. Either accept and verify each distinct artifact or design a controlled runtime configuration mechanism. Do not claim byte identity while changing embedded configuration during deployment.

Keep credentials outside the artifact. Retrieve them through the environment's approved mechanism with the required scope. Record configuration version or schema identity without placing secret values in the release manifest or test output.

For a synthetic runtime-configured service, staging and production use different database locations while deploying the same executable object. Tests should verify configuration validation and secure startup failure without attempting to connect to an unintended fallback database.

Check architecture and promotion transport

An image reference can identify a multi-platform index rather than one platform-specific image. Record which platform the deployment selects and what the verification environment tested. Testing one architecture does not establish runtime behavior on another.

If several architectures are supported, give each required platform an appropriate verification path and link those results to the release index. Include native libraries and runtime assumptions in the test scope, especially when emulation differs from production hardware.

When promotion copies objects between repositories, verify the destination's immutable identity and the platform entries it exposes. Do not assume that a copy operation preserved every manifest or associated record. Use the artifact system's documented semantics and inspect the resulting object.

Make retries idempotent where the repository supports it. A failed promotion should either leave no deployable release record or a clearly incomplete one. The next attempt must not silently overwrite an unrelated artifact sharing the same version label.

Gate deployment on evidence rather than a moving label

Before production deployment, confirm that the candidate identity, required test results, configuration compatibility, and recovery artifact are present. Resolve all of them from the release manifest. Avoid reading one tag for testing and another tag for deployment without proving their relationship.

Deploy with a recorded immutable identity and then verify what is actually running. A successful scheduler update is insufficient if some instances retain an older artifact or select another platform variant. Observe the rollout's mixed-version interval and the expected compatibility behavior.

The promotion record should distinguish approved, deploying, verified, and failed outcomes. A failed health gate must not mark the artifact as successfully released. Keep user-visible release notes aligned with the verified result rather than the moment the promotion command began.

Use explicit rollout decision criteria from the canary guide. Byte identity reduces one source of uncertainty, but configuration, external dependencies, and production data can still make the same artifact behave differently.

Retain the identities needed for recovery

Keep previous supported artifacts and their configuration requirements available for the recovery window. Storage cleanup should understand release ownership and deployment references rather than deleting objects solely because their tags look old.

Exercise recovery using the retained artifact, not a rebuild of its source. The rollback rehearsal guide covers testing old code against the state written by the candidate.

If an approved artifact must change, create a new identity and rerun the affected gates. Do not patch files inside a published object while preserving its release label. The promotion process succeeds when test evidence, deployment, and recovery all refer to an explicit executable object whose identity stays stable across those decisions.

READER SIGNAL

Was this guide useful?

Your rating helps us prioritize clearer, more practical technical content.

AREZGIT / DESKTOP WORKSPACEFROM FIELD NOTE TO RELEASE

Review diffs, run checks, and prepare the release in Arezgit.

Keep Git review, security scanning, API checks, database inspection, and release preparation together in one local desktop application.

Explore Arezgit