feat: matrix ci - #2009
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughAdds GHCR repository normalization in docker-image-alpha workflow and switches all GHCR references to the derived env variable. Overhauls docker-image-arm64 workflow into a single job that builds and pushes multi-arch images using metadata-driven tags/labels, consolidating setup, login, and build steps, and removing per-arch builds and explicit manifest creation. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Dev as GitHub Actions Runner
participant WF as docker-image-alpha.yml
participant Norm as Normalize GHCR_REPOSITORY
participant Build as Docker Buildx
participant GHCR as ghcr.io
Dev->>WF: Trigger workflow
rect rgba(200,230,255,0.3)
note right of Norm: New
WF->>Norm: Derive GHCR_REPOSITORY from GITHUB_REPOSITORY
Norm-->>WF: Export env.GHCR_REPOSITORY
end
WF->>Build: Build image using env.GHCR_REPOSITORY in tags
Build->>GHCR: Push single-arch images
rect rgba(220,255,220,0.3)
note over WF,GHCR: Manifests use GHCR_REPOSITORY (updated)
WF->>GHCR: Create/push manifests (alpha and versioned alpha)
end
sequenceDiagram
autonumber
actor Dev as GitHub Actions Runner
participant WF as docker-image-arm64.yml (single job)
participant QEMU as Setup QEMU
participant BX as Setup Buildx
participant Meta as Docker Metadata
participant GHCR as ghcr.io
participant Build as build-push-action@v5
Dev->>WF: Trigger workflow
WF->>WF: Checkout repo
WF->>WF: git describe --tags > VERSION
WF->>QEMU: Initialize emulation
WF->>BX: Initialize builder
WF->>GHCR: Login
WF->>Meta: Extract tags/labels
rect rgba(255,245,200,0.4)
note right of Build: Consolidated multi-arch build
WF->>Build: Build and push (linux/amd64, linux/arm64) with Meta tags/labels
Build->>GHCR: Push images with derived metadata
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Poem
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit
New Features
Chores