Use runner-provided Docker access for publishing

This commit is contained in:
dingo
2026-09-11 17:33:30 -04:00
parent 1188fca412
commit 739b900670
2 changed files with 15 additions and 7 deletions
+5 -7
View File
@@ -49,15 +49,13 @@ jobs:
runs-on: ubuntu-22.04
outputs:
digest: ${{ steps.build.outputs.digest }}
env:
# The runner provisions the daemon as "docker-host" (container.options:
# --add-host=docker-host:host-gateway), so name it rather than a bridge IP:
# 172.17.0.1 was a workaround from when that alias did not reach job containers,
# and it stops resolving whenever the daemon moves. Set here at job level so every
# step -- including the buildx and build-push JS actions -- inherits it.
DOCKER_HOST: tcp://docker-host:2375
steps:
- uses: actions/checkout@v4
# Docker access belongs to the runner configuration: inherit its socket,
# context, or TLS environment instead of forcing the previous runner's TCP endpoint.
- name: Check publish job Docker connection
timeout-minutes: 1
run: docker version
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with: