Drop docker.sock mount instructions from build/release workflows
Build / build-and-push (push) Successful in 1m5s
Build / build-and-push (push) Successful in 1m5s
Manually forwarding the host Docker socket into job containers causes problems for the Gitea runner and isn't needed -- the runner's daemon is reachable from job containers out of the box. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -25,13 +25,10 @@ on:
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
# Assumes the runner forwards the host's Docker socket into job
|
||||
# containers -- if this job fails to reach a daemon, add
|
||||
# container.options: -v /var/run/docker.sock:/var/run/docker.sock
|
||||
# (and allow that path in valid_volumes) to the runner's config.yaml.
|
||||
# Relies on the Gitea runner's Docker daemon being reachable from job
|
||||
# containers, which it is out of the box -- no extra runner config needed.
|
||||
container:
|
||||
image: docker:cli
|
||||
options: -v /var/run/docker.sock:/var/run/docker.sock
|
||||
steps:
|
||||
# actions/checkout is a JS action; docker:cli is Alpine-based and has
|
||||
# no node on PATH by default (same issue fixed in ci.yml).
|
||||
|
||||
@@ -24,12 +24,10 @@ on:
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
# Assumes the runner forwards the host's Docker socket into job
|
||||
# containers -- see the matching note in build.yml if this can't reach
|
||||
# a daemon.
|
||||
# Relies on the Gitea runner's Docker daemon being reachable from job
|
||||
# containers, which it is out of the box -- no extra runner config needed.
|
||||
container:
|
||||
image: docker:cli
|
||||
options: -v /var/run/docker.sock:/var/run/docker.sock
|
||||
steps:
|
||||
# actions/checkout is a JS action; docker:cli is Alpine-based and has
|
||||
# no node on PATH by default (same issue fixed in ci.yml).
|
||||
|
||||
Reference in New Issue
Block a user