Build images (Flox-based build image), pushed to oci.tlyng.no/ci
Find a file
Torkel Lyng 1eb4f5c217
All checks were successful
/ build (push) Successful in 5m49s
/ scan-and-sign (oci.tlyng.no/ci/base@sha256:1cf218f51c5702f0d3833abe3451574eda669f4fed6b530b2660f6fb67b5bc60) (push) Successful in 42s
/ scan-and-sign (oci.tlyng.no/ci/go@sha256:03817658d665e1107e8fa8c0a38e1be069f0c05adcc185ab90f693e405f5572f) (push) Successful in 43s
/ scan-and-sign (oci.tlyng.no/ci/go-release@sha256:df0f91ab022740cdf18e920db8637e86e94282ed31aa990b9a779c4ae9849add) (push) Successful in 47s
/ scan-and-sign (oci.tlyng.no/ci/release@sha256:2d08eb31967533df10e8219c8a4d92f38ba03a8d2f6a8a51db2323e814dc640a) (push) Successful in 48s
/ scan-and-sign (oci.tlyng.no/ci/rust@sha256:0f28a7d42b008a6e26f7a1605dcce273e51ac72405a8761617179c8544ea38c7) (push) Successful in 36s
/ scan-and-sign (oci.tlyng.no/ci/rust-release@sha256:c93c20c12d0c27557cd25046f07eb6f579dbd0c20afe372893f1e5850887e8d2) (push) Successful in 47s
feat: reviewdog in ci/go and ci/rust
2026-12-02 01:32:28 +01:00
.forgejo/workflows feat: ci/rust and ci/rust-release images 2026-12-02 01:00:28 +01:00
.gitignore feat!: build the images with Nix; split release tooling into release images 2026-12-01 22:32:18 +01:00
flake.lock feat: ci/rust and ci/rust-release images 2026-12-02 01:00:28 +01:00
flake.nix feat: reviewdog in ci/go and ci/rust 2026-12-02 01:32:28 +01:00
README.md feat: reviewdog in ci/go and ci/rust 2026-12-02 01:32:28 +01:00

ci/images

CI images built with Nix (flake.nix, dockerTools.buildLayeredImage): only the runtime closure of the listed tools, no Nix, no package manager, no source trees. .forgejo/workflows/build.yaml pushes them to oci.tlyng.no/ci/<name> (anonymous pull for ci/**), scans them (report only) and signs them with the CI cosign key.

Image Runner label Contents
ci/base runs-on: base bash, coreutils & co, git, curl, jq, make, node 22 (slim, for JavaScript actions), Docker CLI + buildx
ci/go runs-on: go base + go, golangci-lint, gotestsum, reviewdog (CGO_ENABLED=0)
ci/rust runs-on: rust base + Rust stable (fenix: rustc, cargo, clippy, rustfmt), cargo-nextest, reviewdog, gcc (cc), pkg-config + OpenSSL
ci/release runs-on: release base + svu, git-cliff, goreleaser, cosign, trivy
ci/go-release runs-on: go-release go + the release tools
ci/rust-release runs-on: rust-release rust + the release tools + cargo-zigbuild, zig and std for aarch64/musl/macOS targets (goreleaser's Rust builder); rustup is a shim that only checks target add

Rust binaries linked inside these images point at the Nix store's glibc, so they run in the image (CI jobs) but not elsewhere; release binaries come from cargo-zigbuild, which produces normal portable ones.

Everyday jobs (lint, test, build) use the small images; only release jobs carry the release tooling.

Updates: update.yaml runs nix flake update every Monday and, if nixpkgs moved, release-bot opens a PR. CI builds the images on the PR; merging pushes, scans and signs them.

Adding a stack: a package list and an image in flake.nix, its name in IMAGES and the scan-and-sign matrix in build.yaml, and a runner label in the system repo (modules/nixos/k8s/forgejo-runner.nix).

Locally: nix build .#go gives a docker-archive (docker load < result, trivy image --input result).