ci: add Dockerfile base image verification workflow#2348
Conversation
Checks that all base images in Dockerfiles have manifests for all target platforms (amd64, arm64, arm/v7) on PRs that modify Dockerfiles. Prevents the recurring issue of Snyk/Dependabot pinning image versions that don't support all architectures. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Claude finished @Yeraze's task —— View job PR Review: Dockerfile Base Image Verification WorkflowReviewing this PR that adds CI validation for Dockerfile base image availability across target platforms. Todo List:
Review Findings✅ Code Quality & Best PracticesExcellent overall implementation with good attention to detail:
✅ Robust Image Detection LogicThe workflow handles complex scenarios well:
|
- scripts/watch-release.sh: polls release workflows every 60s - .claude/commands/create-release.md: skill for creating releases with validation, release notes, and workflow monitoring Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Claude finished @Yeraze's task —— View job PR Review: Dockerfile Base Image Verification WorkflowReviewing this PR that adds CI validation for Dockerfile base image availability across target platforms. Todo List:
Review Findings✅ Code Quality & Best PracticesExcellent overall implementation with good attention to detail:
✅ Robust Image Detection LogicThe workflow handles complex scenarios well:
|
The grep-based approach gave false negatives. Now uses docker manifest inspect with jq to parse OS/architecture/variant fields precisely. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Claude finished @Yeraze's task —— View job PR Review: Dockerfile Base Image Verification WorkflowReviewing this PR that adds CI validation for Dockerfile base image availability across target platforms. Todo List:
Review Findings✅ Code Quality & Best PracticesDockerfile Image Verification Workflow (.github/workflows/dockerfile-image-check.yml):
Release Monitoring Script (scripts/watch-release.sh):
Claude Release Command (.claude/commands/create-release.md):
✅ Robust Image Detection LogicThe workflow handles complex scenarios well:
|
Adds a PR check that verifies all Dockerfile base images exist for all target platforms (amd64, arm64, arm/v7). Runs only when Dockerfiles are modified.
Prevents issues like the armv7 build failure in v3.10.0-RC1 where
node:22.22.1-trixie-slimdidn't have an arm/v7 manifest.🤖 Generated with Claude Code