ci: ignore busy /var/run/act mount during Kaniko scratch build
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:
parent
b83f9e95b6
commit
3aa1abe175
1 changed files with 6 additions and 0 deletions
6
.github/workflows/deploy.yml
vendored
6
.github/workflows/deploy.yml
vendored
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue