Skip to content

CICD-141 · Record manifest digest evidence ​

Encyclopedia · Registries and releases · All snippets

Previous · CICD-140 · Next · CICD-142

1. Where it fits ​

  • Placement Bash run step following checkout, or equivalent lab terminal.
  • Prerequisites authorized test registry, scoped credentials and candidate artifact.
  • Platforms local-linux, github-actions, gitea-actions.
  • Parameters IMAGE_REF.

2. Copy the snippet ​

bash
docker buildx imagetools inspect "${IMAGE_REF:?}" | awk '$1=="Digest:"{print $2; exit}' > digest.txt
grep -Ex 'sha256:[0-9a-f]{64}' digest.txt

3. How it works ​

Inspect resolves registry manifest metadata for the supplied reference, including the manifest identity or platform set.

4. Verify the result ​

Inspect top-level manifest digest for the exact target repository.

Validation syntax-validated (Bash parse). Status definitions.