Files
novoyuuparosk-auto-wiki/ci/Dockerfile.kaniko-act
T
mikkeli 217d633853
/ build (push) Failing after 1s
fix(ci): add /tmp to kaniko-act (r2)
kaniko's scratch image has no /tmp; the build script and act's
RUNNER_TEMP both assume it exists.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-11 11:20:59 +09:00

15 lines
776 B
Docker

# Kaniko executor adapted for Gitea act_runner job containers.
#
# act starts job containers with entrypoint /bin/sleep and sets
# RUNNER_TEMP=/tmp; kaniko's scratch-based image has neither /bin/sleep
# (busybox lives under /busybox; /bin/sh is already symlinked) nor /tmp.
# This wrapper adds exactly those two. Nothing else changes.
#
# Bootstrap: the first build of this image is done manually on the host
# (docker build -f ci/Dockerfile.kaniko-act -t <registry>/mikkeli/kaniko-act:<ver> .)
# because no builder image exists yet. Later version bumps can be built by
# the build-image workflow itself, using the previous kaniko-act.
FROM gcr.io/kaniko-project/executor:v1.23.2-debug
SHELL ["/busybox/sh", "-c"]
RUN ln -sf /busybox/sleep /bin/sleep && mkdir -p -m 1777 /tmp