Use custom runner image with jq, kustomize, docker pre-installed
Some checks failed
CI / changes (push) Successful in 1s
Deploy Production / deploy (push) Failing after 26s
CI / build (push) Has been skipped
CI / lint-and-test (push) Successful in 35s

Build a runner-image based on node:20-bookworm with all CI tools
baked in, avoiding apt-get install in every workflow run. Runner
labels now point to gitea.coreworlds.io/lazorgurl/runner-image.
This commit is contained in:
Julia McGhee
2026-03-21 16:39:34 +00:00
parent eb8e090283
commit 98ab851b60
5 changed files with 11 additions and 13 deletions

View File

@@ -20,8 +20,6 @@ jobs:
with:
fetch-depth: 0
- run: apt-get update && apt-get install -y jq
- name: Detect changed apps
id: filter
run: |

View File

@@ -10,11 +10,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install tools
run: |
apt-get update && apt-get install -y jq curl
curl -sL https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv5.6.0/kustomize_v5.6.0_linux_amd64.tar.gz | tar xz -C /usr/local/bin
- run: corepack enable && corepack prepare pnpm@latest --activate
- run: pnpm install --frozen-lockfile

View File

@@ -12,11 +12,6 @@ jobs:
with:
fetch-depth: 2
- name: Install tools
run: |
apt-get update && apt-get install -y jq curl
curl -sL https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv5.6.0/kustomize_v5.6.0_linux_amd64.tar.gz | tar xz -C /usr/local/bin
- run: corepack enable && corepack prepare pnpm@latest --activate
- run: pnpm install --frozen-lockfile

View File

@@ -0,0 +1,10 @@
FROM node:20-bookworm
RUN apt-get update && apt-get install -y --no-install-recommends \
jq \
curl \
git \
docker.io \
&& curl -sL https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv5.6.0/kustomize_v5.6.0_linux_amd64.tar.gz \
| tar xz -C /usr/local/bin \
&& apt-get clean && rm -rf /var/lib/apt/lists/*

View File

@@ -27,7 +27,7 @@ spec:
name: gitea-runner-token
key: token
- name: GITEA_RUNNER_LABELS
value: "ubuntu-latest:docker://node:20-bookworm,linux/amd64:docker://node:20-bookworm,cluster:docker://node:20-bookworm"
value: "ubuntu-latest:docker://gitea.coreworlds.io/lazorgurl/runner-image:latest,linux/amd64:docker://gitea.coreworlds.io/lazorgurl/runner-image:latest,cluster:docker://gitea.coreworlds.io/lazorgurl/runner-image:latest"
- name: DOCKER_HOST
value: tcp://localhost:2375
volumeMounts: