diff options
| author | Dax Raad <[email protected]> | 2026-01-29 23:07:58 -0500 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2026-01-29 23:07:58 -0500 |
| commit | 5cfb5fdd0664632956056a1004ab1857a8eb3673 (patch) | |
| tree | df571be285045a90ae461ce73a966d24f95146a1 /packages/containers/README.md | |
| parent | 30969dc33e20858a9b7773aa19ad345335a644c1 (diff) | |
| download | opencode-5cfb5fdd0664632956056a1004ab1857a8eb3673.tar.gz opencode-5cfb5fdd0664632956056a1004ab1857a8eb3673.zip | |
ci: add container build workflow
Add prebuilt build images and a publish workflow to speed CI by reusing heavy dependencies.
Diffstat (limited to 'packages/containers/README.md')
| -rw-r--r-- | packages/containers/README.md | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/packages/containers/README.md b/packages/containers/README.md new file mode 100644 index 000000000..42190f0ba --- /dev/null +++ b/packages/containers/README.md @@ -0,0 +1,36 @@ +# CI containers + +Prebuilt images intended to speed up GitHub Actions jobs by baking in +large, slow-to-install dependencies. These are designed for Linux jobs +that can use `job.container` in workflows. + +Images + +- `base`: Ubuntu 24.04 with common build tools and utilities +- `bun-node`: `base` plus Bun and Node.js 24 +- `rust`: `bun-node` plus Rust (stable, minimal profile) +- `tauri-linux`: `rust` plus Tauri Linux build dependencies +- `publish`: `bun-node` plus Docker CLI and AUR tooling + +Build + +``` +REGISTRY=ghcr.io/anomalyco TAG=24.04 bun ./packages/containers/script/build.ts +``` + +Workflow usage + +``` +jobs: + build-cli: + runs-on: ubuntu-latest + container: + image: ghcr.io/anomalyco/build/bun-node:24.04 +``` + +Notes + +- These images only help Linux jobs. macOS and Windows jobs cannot run + inside Linux containers. +- If a job uses Docker Buildx, the container needs access to the host + Docker daemon (or `docker-in-docker` with privileged mode). |
