ci: ignore busy /var/run/act mount during Kaniko scratch build
Some checks failed
Build & Publish / Check (push) Successful in 2m26s
Build & Publish / Build & Publish (push) Failing after 5m10s

The runtime stage is FROM scratch with COPY /rootfs /, so Kaniko
rebuilds the container root and tries to unlink the act runner's
/var/run/act bind-mount (device or resource busy). Pass
--ignore-path=/var/run/act so Kaniko skips that runner artifact.
This commit is contained in:
Niels Göttsch 2026-07-17 10:17:52 +02:00
parent b83f9e95b6
commit 3aa1abe175

View file

@ -105,8 +105,14 @@ jobs:
# Kaniko clones the context itself (this job has no node for JS actions # Kaniko clones the context itself (this job has no node for JS actions
# like checkout). `dev` is the moving branch tag; the commit SHA is the # like checkout). `dev` is the moving branch tag; the commit SHA is the
# immutable ref the moby Deployment pins by digest. # immutable ref the moby Deployment pins by digest.
# The runtime stage is `FROM scratch` + `COPY /rootfs /`, so Kaniko
# rebuilds the container root. The act runner bind-mounts /var/run/act
# into the job container; Kaniko can't unlink that busy mount while
# laying down the rootfs (unlinkat ... device or resource busy), so
# ignore it. It is a runner artifact and must not be in the image.
/kaniko/executor \ /kaniko/executor \
--context "git://${REGISTRY}/moby/brewlog.git#refs/heads/dev" \ --context "git://${REGISTRY}/moby/brewlog.git#refs/heads/dev" \
--dockerfile Dockerfile \ --dockerfile Dockerfile \
--ignore-path=/var/run/act \
--destination "${IMAGE}:${GITHUB_SHA}" \ --destination "${IMAGE}:${GITHUB_SHA}" \
--destination "${IMAGE}:dev" --destination "${IMAGE}:dev"