-
Notifications
You must be signed in to change notification settings - Fork 3.2k
feat(releases): tag releases to main with version numbers, speed up docker builds #2337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Greptile OverviewGreptile SummaryThis PR implements automated version tagging for releases and optimizes Docker build performance. When commits to Key changes:
Confidence Score: 4/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant Dev as Developer
participant GH as GitHub (main)
participant CI as CI Workflow
participant DV as detect-version
participant TB as test-build
participant AMD as build-amd64
participant ARM as build-ghcr-arm64
participant ECR as AWS ECR
participant GHCR as GitHub Container Registry
participant MF as create-ghcr-manifests
Dev->>GH: Push commit (e.g., "v0.5.24: new feature")
GH->>CI: Trigger CI workflow
par Run Tests and Detect Version
CI->>TB: Run tests and build
CI->>DV: Extract version from commit message
DV->>DV: Check if commit matches ^(v[0-9]+\.[0-9]+\.[0-9]+):
alt Version commit on main
DV->>DV: Set is_release=true, version=v0.5.24
else Not a version commit
DV->>DV: Set is_release=false
end
end
TB-->>CI: Tests passed ✓
DV-->>CI: Version detected (if applicable)
par Build AMD64 and ARM64
CI->>AMD: Build AMD64 images (3 services)
Note over AMD: Uses BuildKit cache mounts<br/>for faster bun install
AMD->>ECR: Push latest/staging + SHA tags
alt Main branch
AMD->>GHCR: Push latest-amd64 + SHA-amd64
alt is_release=true
AMD->>GHCR: Push v0.5.24-amd64
end
end
CI->>ARM: Build ARM64 images (3 services)
Note over ARM: Uses BuildKit cache mounts<br/>for faster bun install
ARM->>GHCR: Push latest-arm64 + SHA-arm64
alt is_release=true
ARM->>GHCR: Push v0.5.24-arm64
end
end
AMD-->>CI: AMD64 builds complete
ARM-->>CI: ARM64 builds complete
CI->>MF: Create multi-arch manifests
MF->>GHCR: Create manifest for latest tag
MF->>GHCR: Create manifest for SHA tag
alt is_release=true
MF->>GHCR: Create manifest for v0.5.24 tag
end
MF-->>CI: Manifests created ✓
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5 files reviewed, no comments
Summary
Type of Change
Testing
Tested manually
Checklist