CICD-139 · Inspect multi-platform image manifests
Encyclopedia · Registries and releases · All snippets
Previous · CICD-138 · Next · CICD-140
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 --raw "${IMAGE_REF:?}" | jq -e '[.manifests[].platform.architecture] | index("amd64") != null and index("arm64") != null'3. How it works
Inspect resolves registry manifest metadata for the supplied reference, including the manifest identity or platform set. The expression filters or transforms the input JSON. Where jq -e is used, a false or empty result can fail the gate.
4. Verify the result
Supply an OCI index image, not a single-manifest tag.
Validation syntax-validated (Bash parse). Status definitions.