fix(ci): give rootless buildah a writable XDG_RUNTIME_DIR in build job
CI / Lint / Test / Vet (push) Successful in 9s
CI / Build & Import (push) Failing after 1s
CI / Mirror to GitHub (push) Has been skipped

The act_runner is a systemd service with no login session → XDG_RUNTIME_DIR
unset → rootless buildah uses root-owned /run/containers and fails 'mkdir
/run/containers: permission denied'. Set XDG_RUNTIME_DIR to a per-job mktemp
dir so its runroot is writable. (check + on:/go-version fixes already landed;
this unblocks the image build → registry.)
This commit is contained in:
2026-06-03 08:23:40 +02:00
parent 3a1eb3d3da
commit 86f8929c15
+5
View File
@@ -63,6 +63,11 @@ jobs:
- name: Build and push to local registry
run: |
# The act_runner is a systemd service with no login session, so
# XDG_RUNTIME_DIR is unset and rootless buildah falls back to the
# root-owned /run/containers ("mkdir /run/containers: permission
# denied"). Point its runroot at a writable per-job temp dir instead.
export XDG_RUNTIME_DIR="$(mktemp -d /tmp/buildah-run.XXXXXX)"
REGISTRY="localhost:5000"
REF="${REGISTRY}/${{ env.IMAGE }}:${{ steps.meta.outputs.sha-tag }}"
buildah build \