Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

ci(ci-image): automate image builds on push and add llvm-tools

Steven Enamakelc532d706bed2
diff --git a/.github/Dockerfile b/.github/Dockerfile
index 25dfff5ad9..6dc6af3842 100644
--- a/.github/Dockerfile
+++ b/.github/Dockerfile
@@ -25,13 +25,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
webkit2gtk-driver \
&& rm -rf /var/lib/apt/lists/*
-# Rust 1.96.1 with minimal profile + fmt/clippy
+# Rust 1.96.1 with minimal profile + fmt/clippy + llvm-tools (cargo-llvm-cov)
ENV RUSTUP_HOME=/usr/local/rustup \
CARGO_HOME=/usr/local/cargo \
PATH="/usr/local/cargo/bin:$PATH"
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- \
-y --default-toolchain 1.96.1 --profile minimal \
- -c rustfmt -c clippy \
+ -c rustfmt -c clippy -c llvm-tools-preview \
-t x86_64-unknown-linux-gnu
# Node.js 24.x + pnpm (project's package manager — pinned in package.json)
diff --git a/.github/workflows/build-ci-image.yml b/.github/workflows/build-ci-image.yml
index 7cbb8b6ec1..3ab11840bc 100644
--- a/.github/workflows/build-ci-image.yml
+++ b/.github/workflows/build-ci-image.yml
@@ -1,10 +1,27 @@
---
+# Builds ghcr.io/tinyhumansai/openhuman_ci, the container ci-lite and the
+# hosted CI Fast lanes run in (and the base of the EX63 microVM guest image).
+#
+# Rebuilds on every push to main that changes an input of the image, so the
+# published image can no longer lag its Dockerfile: `latest` shipped Rust
+# 1.93.0 for months while the Dockerfile and rust-toolchain.toml said 1.96.1,
+# because this workflow only ever ran by hand. Manual dispatch still works.
name: Build CI Image
on:
+ push:
+ branches: [main]
+ paths:
+ - .github/Dockerfile
+ - .github/workflows/build-ci-image.yml
+ - rust-toolchain.toml
+ - e2e/docker-entrypoint.sh
workflow_dispatch:
permissions:
contents: read
packages: write
+concurrency:
+ group: build-ci-image
+ cancel-in-progress: false
jobs:
build-image:
name: Build and push CI image
@@ -13,10 +30,11 @@ jobs:
environment: Production
steps:
- name: Checkout code
+ # No submodules: the build context only needs e2e/docker-entrypoint.sh
+ # (the vendored tauri-cef fork it used to compile is gone).
uses: actions/checkout@v7
with:
- # vendored tauri-cef fork is compiled into the image
- submodules: recursive
+ persist-credentials: false
- name: Log in to GHCR
uses: docker/login-action@v4
with:
@@ -30,6 +48,8 @@ jobs:
file: .github/Dockerfile
push: true
provenance: false
+ # The sha tag says exactly which commit `latest` was built from.
tags: |-
ghcr.io/tinyhumansai/openhuman_ci:latest
ghcr.io/tinyhumansai/openhuman_ci:rust-1.96.1
+ ghcr.io/tinyhumansai/openhuman_ci:sha-${{ github.sha }}