Interview Prep/GitHub Actions/Caching, Artifacts, Builds & Scans

An image built on a hosted runner fails in EKS Graviton nodes with `exec format error`.

IntermediateTroubleshootingCaching, Artifacts, Builds & Scans
Answer

Likely causes → Built amd64 only on an x64 runner, deployed to arm64 nodes.

Diagnose →

docker buildx imagetools inspect $IMAGE:sha-a1b2c3d

Fix → Build multi-arch (platforms: linux/amd64,linux/arm64, ideally native arm runners and a manifest merge), or pin node affinity to amd64.

Prevent → Add a check that the manifest contains every platform your clusters run.

All GitHub Actions questions Roadmap: GitHub Actions

More on Caching, Artifacts, Builds & Scans