Repository navigation
Conversation
Stock ghcr.io/actions/actions-runner:latest ships without a Node toolchain,
so every job spends ~1m25s on actions/setup-node@v4 reinstalling Node from
scratch on the ephemeral pod. This image bakes in Node 22 LTS, pnpm 10.18.2
via corepack, and the usual native-build deps (build-essential, python3, git).
Published as ghcr.io/chillwhales/actions-runner:{node22-<sha>,node22,latest}
by .github/workflows/runner-image.yml — push to runner/**, weekly cron for
base image patches, plus workflow_dispatch.
Consumed cross-org by ARC self-hosted runner sets in k8s-cluster. Helm values
should pin image.tag to an immutable node22-<sha> for deliberate upgrades.
- Add pull_request trigger so changes to runner/** are validated before merge - Push a PR-scoped tag (pr-<n>-<sha>, pr-<n>) so a runner can be temporarily pinned to test the image end-to-end before promoting to main - Skip cache-to writes on PR builds (forks/branches shouldn't poison the shared buildcache) - Add a small smoke step that asserts node/corepack/pnpm/git are present - Scope concurrency per PR/ref so PR rebuilds cancel-in-progress but main pushes never cancel each other
Member
Author
|
Superseded by kethalia/github-runners#2 (custom runner image, Node 22+24 pre-cached in toolcache, pnpm via pnpm/action-setup@v4 per-workflow) and kethalia/k8s-cluster#63 (runner sets bumped to consume the new image). Closing as the toolchain-bootstrap speedup is already realized via that path. |
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.
Summary
runner/Dockerfile— extendsghcr.io/actions/actions-runner:latestwith Node 22 LTS, pnpm 10.18.2 (via corepack), git, build-essential, python3..github/workflows/runner-image.yml— publishesghcr.io/chillwhales/actions-runner:{node22-<sha>,node22,latest}onrunner/**changes, weekly cron, or manual dispatch. BuildKit registry-backed cache for cross-build layer reuse.runner/README.md— usage and pinning guidance for k8s-cluster consumers.Why
Stock runner image has no Node toolchain. Every job in
ci-build-lint-test.ymlreusable currently spends ~1m25s onactions/setup-node@v4reinstalling Node from scratch on the ephemeral pod. Across ~5 parallel jobs in a typical CI run, that's the dominant time sink after the actual build. Baking the toolchain in drops setup-node to ~2s.Rollout
k8s-clusterto bumpimage.tagtonode22-<sha>in both orgactions-runner-set-*/values.yamlCross-org by design:
runnerScaleSetName: self-hostedis identical across chillwhales, kethalia, and any future org consumingchillwhales/.github.Test plan
node --version/pnpm --versioncleanly🤖 Generated with Claude Code