From b515c65abadd35c8d8a82eefa0ea2e592d95264b Mon Sep 17 00:00:00 2001 From: dingo Date: Sun, 6 Sep 2026 09:03:15 -0400 Subject: [PATCH] ci: point publish job's DOCKER_HOST at the node bridge IP directly container.options: --add-host=docker-host:host-gateway in the runner's config is meant to make "docker-host" resolve inside job containers, but that alias isn't landing on the publish job's container (DNS lookup of docker-host fails there). act_runner's own connection to the same daemon does resolve it, via the pod's hostAliases entry to 172.17.0.1 (proven by verify's Postgres service container working over it). Point DOCKER_HOST at that address directly instead of depending on the container-option alias. This is a stopgap: it hardcodes a node-internal bridge IP into the workflow. The real fix is on the runner side, figuring out why container.options isn't reaching job containers. Co-Authored-By: Claude Sonnet 5 --- .gitea/workflows/build.yaml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index ba0bb6d..07a5a53 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -50,11 +50,15 @@ jobs: outputs: digest: ${{ steps.build.outputs.digest }} env: - # The runner's job containers get docker-host mapped to the DinD sidecar via - # --add-host=docker-host:host-gateway (see gitea-runner-config), but that alone - # doesn't guarantee every step's own process env has DOCKER_HOST set — declare it - # here so buildx/build-push can always find the daemon. - DOCKER_HOST: tcp://docker-host:2375 + # gitea-runner-config sets container.options: --add-host=docker-host:host-gateway, + # meant to make "docker-host" resolve inside job containers -- but that alias isn't + # landing on this job's own container (DNS lookup of docker-host fails), even though + # act_runner's own connection to the same daemon (proven by verify's Postgres service + # working) resolves it via the pod's hostAliases to 172.17.0.1. Use that address + # directly rather than depend on the container-option alias. + # TODO(ops): fix container.options/--add-host so job containers get "docker-host" + # for real, then this can go back to using that name instead of a hardcoded IP. + DOCKER_HOST: tcp://172.17.0.1:2375 steps: - uses: actions/checkout@v4 - uses: docker/setup-buildx-action@v3