From 9b12dbaaa0a0d81998036f148a1618e593e934b3 Mon Sep 17 00:00:00 2001 From: m5r Date: Fri, 7 Aug 2026 17:55:56 +0200 Subject: [PATCH] ci: deliver the smoke-test config via docker cp instead of a bind mount --- .gitea/workflows/ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 3524a4d..59202a1 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -262,11 +262,16 @@ jobs: } EOF - cid=$(docker run -d --name nxdns-smoke \ + # No bind mount: the runner talks to the daemon over a mounted + # socket, so a -v path would resolve on the docker host (where the + # workspace does not exist) and mount an empty directory over + # /etc/nxdns. docker cp streams the file through the socket instead. + cid=$(docker create --name nxdns-smoke \ -p 127.0.0.1:8080:8080 \ - -v "$PWD/etc-nxdns:/etc/nxdns:ro" \ nxdns:ci) trap 'docker rm -f nxdns-smoke >/dev/null 2>&1 || true' EXIT + docker cp etc-nxdns/config.zon nxdns-smoke:/etc/nxdns/config.zon + docker start nxdns-smoke # The published port works when the job runs on the docker host or in # DinD; the container IP covers a runner that shares the daemon over