fix(ci): mount /docker-certs/client into the build job container
This commit is contained in:
@@ -18,10 +18,18 @@ jobs:
|
|||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: docker:27-cli
|
image: docker:27-cli
|
||||||
# The runner's dind sidecar shares the pod network and the mTLS cert
|
# The runner's dind sidecar shares the pod network, so the daemon is
|
||||||
# emptyDir, so the daemon is reachable on localhost with the client certs
|
# reachable on localhost -- that part needs no extra config. The mTLS
|
||||||
# dind generated at startup.
|
# certs dind generates at startup do NOT come along for free, though:
|
||||||
|
# they live in an emptyDir mounted into the runner/dind containers, not
|
||||||
|
# into containers a workflow spins up. Job containers get no bind mounts
|
||||||
|
# at all unless the path is in the runner's container.valid_volumes
|
||||||
|
# allowlist (empty by default -- confirmed live, this exact mount was
|
||||||
|
# rejected until the runner's Helm chart added a config.yaml scoping
|
||||||
|
# valid_volumes to exactly this path).
|
||||||
options: --network host
|
options: --network host
|
||||||
|
volumes:
|
||||||
|
- /docker-certs/client:/docker-certs/client:ro
|
||||||
env:
|
env:
|
||||||
DOCKER_HOST: tcp://localhost:2376
|
DOCKER_HOST: tcp://localhost:2376
|
||||||
DOCKER_TLS_VERIFY: "1"
|
DOCKER_TLS_VERIFY: "1"
|
||||||
|
|||||||
Reference in New Issue
Block a user