Add Local Multi-Arch Build Support and Optimize CI Workflow#1834
Merged
benjamin-747 merged 10 commits intoJan 23, 2026
Conversation
Add one-click demo stack: - docker-compose.demo.yml (+ .env.example, init-db.sh) - docs guide - minor Orion server tweaks Signed-off-by: Hongze Gao <15101764808@163.com>
Review feedback addressed: - Remove unused init-db.sh mount and delete placeholder script - Orion /v2/health now hides database error details - Add docker/demo/.env to .gitignore to prevent secret leakage - Add .dockerignore to reduce build context size - docker-compose.demo.yml: • pass CAMPSITE_RUN_MIGRATIONS to campsite_api • add sample resource limits to postgres - Docs: fix FAQ anchor, replace full-width punctuation, add hardware requirements and MySQL low-privilege note. Signed-off-by: Hongze Gao <15101764808@163.com>
Signed-off-by: Hongze Gao <15101764808@163.com>
Signed-off-by: Hongze Gao <15101764808@163.com>
Signed-off-by: Hongze Gao <15101764808@163.com>
Signed-off-by: Hongze Gao <15101764808@163.com>
- Increase job timeout to 3 hours to prevent premature termination Signed-off-by: Hongze Gao <15101764808@163.com>
- Increase job timeout to 4 hours to prevent premature termination Signed-off-by: Hongze Gao <15101764808@163.com>
Add a local build script to build and push multi-arch Docker images on macOS, providing a faster alternative to GitHub Actions builds. - Add scripts/demo/build-demo-images-local.sh for local multi-arch builds - Support building all 4 demo images (mono-engine, mega-ui, orion-server, orion-client) - Include prerequisite checks, buildx setup, and ECR authentication - Add registry cache support for faster subsequent builds - Provide clear error messages and build progress output This script allows developers to build images locally on macOS and push them to ECR Public, avoiding long GitHub Actions build times. Signed-off-by: Hongze Gao <15101764808@163.com>
* GitHub Actions
– Added an explicit block (, ) to
to follow the principle of least
privilege and silence CodeQL “Workflow does not contain permissions” warnings.
* Rust / BuildDTO
– Removed after a prior check in
; replaced with direct
comparison to satisfy Clippy .
Signed-off-by: Hongze Gao <15101764808@163.com>
benjamin-747
approved these changes
Jan 23, 2026
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.
Changes Overview
1. New Local Build Script
Added
scripts/demo/build-demo-images-local.sh- A powerful local build tool that:2. CI Workflow Improvements
Refactored
.github/workflows/demo-multiarch-build.ymlto:Usage
Local Build (Recommended for Faster Iteration)ash
Build all images
./scripts/demo/build-demo-images-local.sh
Build specific image
./scripts/demo/build-demo-images-local.sh mono-engine### CI Workflow
The CI workflow will automatically trigger on changes to:
docker/demo/**.github/workflows/demo-multiarch-build.ymlLocal Build Features
linux/amd64andlinux/arm64CI Optimizations
~/.cargo/registry,~/.cargo/git, andtargetdirectories~/.pnpm-storeandnode_modulesCI Testing
The workflow includes two modes:
Known Issues
Future Improvements
Signed-off-by: Hongze Gao 15101764808@163.com