feat(releases): tag releases to main with version numbers, speed up docker builds#2337
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
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 ✓
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Type of Change
Testing
Tested manually
Checklist