diff --git a/pricing/Jenkinsfile b/pricing/Jenkinsfile index 0ce128a..84cfe13 100644 --- a/pricing/Jenkinsfile +++ b/pricing/Jenkinsfile @@ -160,6 +160,11 @@ pipeline { set -o pipefail export DOCKER_CONFIG="$WORKSPACE/.docker-publish" printf '%s' "$REG_TOKEN" | docker login "$REGISTRY" -u "$REG_USER" --password-stdin + # Releases are immutable: never overwrite an existing tag (see Chapter 6, rollback incident). + if docker manifest inspect "$IMAGE:$COMMIT" >/dev/null 2>&1; then + echo "ERROR: $IMAGE:$COMMIT is already published; releases are immutable. Use MODE=redeploy with the committed record." >&2 + docker logout "$REGISTRY"; exit 1 + fi docker push "$IMAGE:$COMMIT" 2>&1 | tee reports/docker-push.log docker rmi "$IMAGE:$COMMIT" docker pull "$IMAGE:$COMMIT" 2>&1 | tee reports/docker-pull.log diff --git a/pricing/releases/v1-production.yml b/pricing/releases/v1-production.yml index ab589d7..d397ff2 100644 --- a/pricing/releases/v1-production.yml +++ b/pricing/releases/v1-production.yml @@ -1,11 +1,14 @@ # Release record: v1 production. Metadata only; no credentials. +# Corrected 2026-11-12: the original v1 image (sha256:3c0d12eb..., Jenkins #7) was overwritten in +# the registry when Jenkins #10 rebuilt the same commit and re-pushed the same tag. This digest is +# that rebuild of the same reviewed source commit; it passed every gate and the staging smoke test in #10. target_env: production -release_image: git.ssw590.abrdns.com/startupteam/pricing@sha256:3c0d12eb24e74f3f014d9c634f4197d8df7927c4254d12daf48f676f0adab7c9 +release_image: git.ssw590.abrdns.com/startupteam/pricing@sha256:d4d894df4634b088e6d52cbae2128510a05d0e4e1d972f4d64ba959423c07c97 expected_version: v1 expected_commit: d4c012560d5096f399224d5b5f6516a5cb2158a4 expected_total: 30 public_url: https://app.ssw590.abrdns.com proxy_network: startup_private config_commit: d4c012560d5096f399224d5b5f6516a5cb2158a4 -jenkins_build: https://ci.ssw590.abrdns.com/job/pricing-delivery/7/ -recorded_at: 2026-11-12T19:05:57Z +jenkins_build: https://ci.ssw590.abrdns.com/job/pricing-delivery/10/ +recorded_at: 2026-11-12, see Jenkins #10 diff --git a/pricing/releases/v1-staging.yml b/pricing/releases/v1-staging.yml index 75ecdb0..ef9eee7 100644 --- a/pricing/releases/v1-staging.yml +++ b/pricing/releases/v1-staging.yml @@ -1,11 +1,14 @@ # Release record: v1 staging. Metadata only; no credentials. +# Corrected 2026-11-12: the original v1 image (sha256:3c0d12eb..., Jenkins #7) was overwritten in +# the registry when Jenkins #10 rebuilt the same commit and re-pushed the same tag. This digest is +# that rebuild of the same reviewed source commit; it passed every gate and the staging smoke test in #10. target_env: staging -release_image: git.ssw590.abrdns.com/startupteam/pricing@sha256:3c0d12eb24e74f3f014d9c634f4197d8df7927c4254d12daf48f676f0adab7c9 +release_image: git.ssw590.abrdns.com/startupteam/pricing@sha256:d4d894df4634b088e6d52cbae2128510a05d0e4e1d972f4d64ba959423c07c97 expected_version: v1 expected_commit: d4c012560d5096f399224d5b5f6516a5cb2158a4 expected_total: 30 public_url: https://staging.ssw590.abrdns.com proxy_network: startup_private config_commit: d4c012560d5096f399224d5b5f6516a5cb2158a4 -jenkins_build: https://ci.ssw590.abrdns.com/job/pricing-delivery/7/ -recorded_at: 2026-11-12T19:05:57Z +jenkins_build: https://ci.ssw590.abrdns.com/job/pricing-delivery/10/ +recorded_at: 2026-11-12, see Jenkins #10 diff --git a/pricing/releases/v2-production.yml b/pricing/releases/v2-production.yml new file mode 100644 index 0000000..2f679df --- /dev/null +++ b/pricing/releases/v2-production.yml @@ -0,0 +1,11 @@ +# Release record: v2 production. Metadata only; no credentials. +target_env: production +release_image: git.ssw590.abrdns.com/startupteam/pricing@sha256:adf58a4abcb03be98cce394d5fde1794ae77525d2e1882a8be3c59c8c3556d92 +expected_version: v2 +expected_commit: 0465bde4017a3d1f9e3b523dcdc065154789cad7 +expected_total: 36 +public_url: https://app.ssw590.abrdns.com +proxy_network: startup_private +config_commit: 0465bde4017a3d1f9e3b523dcdc065154789cad7 +jenkins_build: https://ci.ssw590.abrdns.com/job/pricing-delivery/11/ +recorded_at: 2026-11-12, see Jenkins #11 diff --git a/pricing/releases/v2-staging.yml b/pricing/releases/v2-staging.yml new file mode 100644 index 0000000..0a4fa8a --- /dev/null +++ b/pricing/releases/v2-staging.yml @@ -0,0 +1,11 @@ +# Release record: v2 staging. Metadata only; no credentials. +target_env: staging +release_image: git.ssw590.abrdns.com/startupteam/pricing@sha256:adf58a4abcb03be98cce394d5fde1794ae77525d2e1882a8be3c59c8c3556d92 +expected_version: v2 +expected_commit: 0465bde4017a3d1f9e3b523dcdc065154789cad7 +expected_total: 36 +public_url: https://staging.ssw590.abrdns.com +proxy_network: startup_private +config_commit: 0465bde4017a3d1f9e3b523dcdc065154789cad7 +jenkins_build: https://ci.ssw590.abrdns.com/job/pricing-delivery/11/ +recorded_at: 2026-11-12, see Jenkins #11