fix: ci GHCR_REPOSITORY env - #2015
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughRefactors Docker image workflows to per-architecture matrix builds that push single-arch images, then creates and pushes multi-arch manifests to Docker Hub and GHCR. Adds version/tag derivation and repository normalization. Updates Dockerfile to accept TARGETOS/TARGETARCH and set GOOS/GOARCH dynamically. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Dev as GitHub Actions (trigger)
participant M as build_single_arch (matrix: amd64, arm64)
participant R1 as Docker Hub
participant R2 as GHCR
participant C as create_manifests
Dev->>M: Checkout (shallow), derive VERSION/TAG, normalize GHCR
rect rgba(200,230,255,0.25)
note over M: For each arch (runner+platform)
M->>M: Setup Buildx, extract labels, cache config
M->>R1: Push image tags (alpha/versioned per-arch)
M->>R2: Push image tags (alpha/versioned per-arch)
end
M-->>C: Needs-completed (both arches)
C->>R1: Login, create multi-arch manifests (alpha + version)
C->>R2: Login, create multi-arch manifests (alpha + version)
C-->>Dev: Manifests published
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Poem
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
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