diff --git a/servers/legion/apps/gitea-runner.yaml b/servers/legion/apps/gitea-runner.yaml index 9a73de6..1001469 100644 --- a/servers/legion/apps/gitea-runner.yaml +++ b/servers/legion/apps/gitea-runner.yaml @@ -17,7 +17,7 @@ spec: spec: initContainers: - name: register - image: registry.neuralplatform.ai/legion-runner:latest + image: registry.neuralplatform.ai/ci-base:latest workingDir: /data command: ["/bin/sh", "-c"] args: @@ -47,7 +47,7 @@ spec: mountPath: /data containers: - name: runner - image: registry.neuralplatform.ai/legion-runner:latest + image: registry.neuralplatform.ai/ci-base:latest workingDir: /data command: ["act_runner", "daemon", "--config", "/data/config.yaml"] envFrom: diff --git a/servers/legion/k8s/gitea-runner/Dockerfile b/servers/legion/k8s/gitea-runner/Dockerfile index e35e120..7470bd7 100644 --- a/servers/legion/k8s/gitea-runner/Dockerfile +++ b/servers/legion/k8s/gitea-runner/Dockerfile @@ -1,24 +1,11 @@ -FROM gitea/act_runner:latest +FROM gitea/act_runner:latest AS runner-bin -USER root +FROM ubuntu:24.04 -RUN apk add --no-cache \ - bash \ - git \ +COPY --from=runner-bin /bin/act_runner /bin/act_runner + +RUN apt-get update && apt-get install -y --no-install-recommends \ + ca-certificates \ curl \ - nodejs \ - npm \ - python3 \ - py3-pip \ - python3-dev \ - gcc \ - musl-dev \ - linux-headers \ - make \ - ruby \ - ruby-bundler \ - ruby-dev \ - build-base \ - zlib-dev && \ - ln -sf /usr/bin/node /usr/local/bin/node && \ - ln -sf /usr/bin/npm /usr/local/bin/npm + git \ + && rm -rf /var/lib/apt/lists/*