ci: add container build workflow

Add prebuilt build images and a publish workflow to speed CI by reusing heavy dependencies.
This commit is contained in:
Dax Raad
2026-01-29 23:07:58 -05:00
parent 30969dc33e
commit 5cfb5fdd06
9 changed files with 182 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
ARG REGISTRY=ghcr.io/anomalyco
FROM ${REGISTRY}/build/bun-node:24.04
ARG RUST_TOOLCHAIN=stable
ENV CARGO_HOME=/opt/cargo
ENV RUSTUP_HOME=/opt/rustup
ENV PATH=/opt/cargo/bin:/opt/bun/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUN set -euo pipefail; \
curl -fsSL https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain "${RUST_TOOLCHAIN}"; \
rustc --version; \
cargo --version