Bake pnpm into runner image, fix config loading with --config flag
Pre-install pnpm 9.15.4 via corepack in the image so it doesn't download every run. Use --config CLI flag instead of CONFIG_FILE env var to ensure container.options volume mount is applied.
This commit is contained in:
@@ -7,4 +7,5 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
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 \
|
||||
&& corepack enable && corepack prepare pnpm@9.15.4 --activate \
|
||||
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
@@ -18,6 +18,7 @@ spec:
|
||||
containers:
|
||||
- name: runner
|
||||
image: gitea/act_runner:latest
|
||||
command: ["act_runner", "daemon", "--config", "/config/config.yaml"]
|
||||
env:
|
||||
- name: GITEA_INSTANCE_URL
|
||||
value: http://gitea-helm-http.platform.svc:3000
|
||||
@@ -30,8 +31,6 @@ spec:
|
||||
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
|
||||
- name: CONFIG_FILE
|
||||
value: /config/config.yaml
|
||||
volumeMounts:
|
||||
- name: runner-data
|
||||
mountPath: /data
|
||||
|
||||
Reference in New Issue
Block a user