ci: add custom runner images with Node.js pre-installed
Build Runner Images / Build and Push Runner Images (push) Failing after 58s

This commit is contained in:
2026-09-07 09:08:10 -07:00
parent f521763292
commit 32ef4eae0e
7 changed files with 120 additions and 3 deletions
@@ -0,0 +1,12 @@
FROM golang:1.26-bookworm
# Add Node.js precheck script
RUN apt-get update && apt-get install -y --no-install-recommends \
nodejs npm \
&& rm -rf /var/lib/apt/lists/*
# Verify installations
RUN node --version && npm --version && go version
LABEL maintainer="homelab" \
description="Golang 1.26 + Node.js pre-installed with precheck"
@@ -0,0 +1,11 @@
FROM node:22-bookworm
# Node.js already installed, ensure npm is up to date
RUN apt-get update && apt-get upgrade -y \
&& rm -rf /var/lib/apt/lists/*
# Verify installations
RUN node --version && npm --version
LABEL maintainer="homelab" \
description="Node.js 22 with latest npm"
@@ -0,0 +1,12 @@
FROM rust:1-bookworm
# Add Node.js
RUN apt-get update && apt-get install -y --no-install-recommends \
nodejs npm \
&& rm -rf /var/lib/apt/lists/*
# Verify installations
RUN rustc --version && cargo --version && node --version && npm --version
LABEL maintainer="homelab" \
description="Rust 1 + Node.js pre-installed"
+1 -1
View File
@@ -9,7 +9,7 @@ runner:
repository: code.forgejo.org/forgejo/runner
tag: "6"
name: node-runner
labels: "node:docker://node:22-bookworm"
labels: "node:docker://forgejo.riotpiao.com/rock/forgejo-runner-node:latest"
# GC CronJob renders only from the default (golang) values to avoid duplicates
gc:
+1 -1
View File
@@ -9,7 +9,7 @@ runner:
repository: code.forgejo.org/forgejo/runner
tag: "6"
name: rust-runner
labels: "rust:docker://rust:1-bookworm"
labels: "rust:docker://forgejo.riotpiao.com/rock/forgejo-runner-rust:latest"
+1 -1
View File
@@ -6,7 +6,7 @@ runner:
# Label image is what workflow steps run in (NOT the runner daemon image).
# golang:1.26-bookworm: Debian, root, apt-get, Go, git.
# Install Node.js/docker in workflow steps as needed.
labels: "golang:docker://golang:1.26-bookworm"
labels: "golang:docker://forgejo.riotpiao.com/rock/forgejo-runner-golang:latest"
forgejoUrl: http://forgejo-gitea-http.cicd.svc.cluster.local:3000
tokenSecret: runner-token
resources: