Repository navigation
ci(images): build amd64 and arm64 on native runners - #13
Merged
Merged
Conversation
| contents: read | ||
| packages: write | ||
| steps: | ||
| - uses: docker/setup-buildx-action@v3 |
| packages: write | ||
| steps: | ||
| - uses: docker/setup-buildx-action@v3 | ||
| - uses: docker/login-action@v3 |
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
Runtime builds currently run both architectures on an x86 runner using QEMU, slowing down ARM64 builds.
Build amd64 and arm64 in parallel on native Ubuntu runners, isolate caches by source and architecture, and merge the published runtime images before cluster packaging.
Cluster packaging also uses native runners and matching Sealos binaries for both source trees, following sealos-apps/template@25481b3.
Validation
Passed actionlint, all four deployment compatibility tests, and git diff --check; remote CI performance is not yet verified.
Sequence Diagram
sequenceDiagram participant Metadata as Metadata and validation participant AMD as Native amd64 runner participant ARM as Native arm64 runner participant Registry as GHCR participant Cluster as Native cluster runners Metadata->>AMD: Build runtime with amd64 cache Metadata->>ARM: Build runtime with arm64 cache alt Publication enabled AMD->>Registry: Push amd64 runtime tag ARM->>Registry: Push arm64 runtime tag Registry->>Registry: Merge runtime manifest after both builds pass Registry->>Cluster: Provide multi-platform runtime image Cluster->>Registry: Publish cluster images and merged manifest else Validation only AMD-->>Metadata: Build result ARM-->>Metadata: Build result end