2026-06-11 11:18:17 +09:00
|
|
|
# Kaniko executor adapted for Gitea act_runner job containers.
|
|
|
|
|
#
|
2026-06-11 11:20:59 +09:00
|
|
|
# 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.
|
2026-06-11 11:18:17 +09:00
|
|
|
#
|
2026-08-11 20:32:45 +09:00
|
|
|
# Bootstrap: the very first build of this image was done manually on the host
|
|
|
|
|
# (docker build -f ci/Dockerfile.kaniko-act -t <registry>/<owner>/kaniko-act:<ver> .)
|
|
|
|
|
# because no builder image existed yet. Version bumps are now built by
|
|
|
|
|
# .gitea/workflows/build-kaniko-act.yml (dispatch-only), which runs in the
|
|
|
|
|
# previous kaniko-act — confirmed working when the image moved to the org.
|
2026-06-11 11:18:17 +09:00
|
|
|
FROM gcr.io/kaniko-project/executor:v1.23.2-debug
|
|
|
|
|
SHELL ["/busybox/sh", "-c"]
|
2026-06-11 11:20:59 +09:00
|
|
|
RUN ln -sf /busybox/sleep /bin/sleep && mkdir -p -m 1777 /tmp
|