Skip to content
  • Marc Durepos's avatar
    fix(ci): take the image digest from bake's metadata, validate it at every use (#5219) · 6feb98ce
    Marc Durepos authored
    
    
    A registry outage during the build's post-push lookup of :latest left
    image-digest.txt empty: the lookup was piped through `tr` without pipefail,
    so the job stayed green, and deploy patched the OdooInstance to `<image>@`.
    
    - build.sh records the digest from `bake --metadata-file`, the push's own
      result: no registry round trip, and no race with a concurrent push of
      :latest. No valid digest (sha256: + 64 hex) fails the build and writes no
      file.
    - deploy, review-deploy and deploy-callback validate image-digest.txt first
      and fail with a clear message before they patch, create or report anything.
    - scripts/image_digest.sh holds both, POSIX sh for the alpine/k8s jobs, with
      tests.
    
    Co-Authored-By: default avatarClaude Opus 5.5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_013MqKqZx7NDm2MVMjM8i2dS
    6feb98ce