Interview Prep/CI/CD/Rapid-Fire Commands

Rapid-fire: buildx commands for multi-arch builds with registry cache.

IntermediateProductionRapid-Fire Commands
Answer
docker buildx create --use --name ci-builder
docker buildx build --platform linux/amd64,linux/arm64 \
  --cache-from type=registry,ref=reg.example.com/api:cache \
  --cache-to   type=registry,ref=reg.example.com/api:cache,mode=max \
  -t reg.example.com/api:$GIT_SHA --push .
docker buildx imagetools inspect reg.example.com/api:$GIT_SHA
All CI/CD questions

More on Rapid-Fire Commands