From 95bec34feef0114bba54c69fbec8453077ddeb25 Mon Sep 17 00:00:00 2001 From: dingo Date: Sun, 6 Sep 2026 08:36:35 -0400 Subject: [PATCH] =?UTF-8?q?Added=20env:=20DOCKER=5FHOST:=20tcp://docker-ho?= =?UTF-8?q?st:2375=20at=20the=20publish=20job=20level=20in=20.gitea/workfl?= =?UTF-8?q?ows/build.yaml.=20Workflow-level=20env:=20is=20guaranteed=20to?= =?UTF-8?q?=20land=20in=20every=20step's=20process=20=E2=80=94=20including?= =?UTF-8?q?=20composite/JS=20actions=20like=20buildx=20and=20build-push=20?= =?UTF-8?q?=E2=80=94=20regardless=20of=20whether=20the=20runner's=20own=20?= =?UTF-8?q?config-based=20env=20injection=20is=20working.=20It=20reuses=20?= =?UTF-8?q?the=20same=20docker-host=20alias=20your=20runner=20config=20alr?= =?UTF-8?q?eady=20provisions=20via=20--add-host=3Ddocker-host:host-gateway?= =?UTF-8?q?,=20so=20no=20cluster/runner=20changes=20are=20needed.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 31b0e61..ba0bb6d 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -49,6 +49,12 @@ jobs: runs-on: ubuntu-22.04 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 steps: - uses: actions/checkout@v4 - uses: docker/setup-buildx-action@v3