fix(ci): drop docker.sock workflow mount (runner auto-mounts it)
The Gitea act_runner already bind-mounts /var/run/docker.sock into job containers when its own runner container has the socket mounted. The workflow-level mount duplicated it and act_runner aborted the job with 'Duplicate mount point: /var/run/docker.sock'.
This commit is contained in:
@@ -27,13 +27,12 @@ on:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
# Gitea Actions: pin image so docker CLI is present and mount the
|
||||
# host docker socket so build-push-action can push to the registry.
|
||||
# The runner declares /var/run/docker.sock in valid_volumes.
|
||||
# Gitea Actions: pin image so docker CLI is present. The runner
|
||||
# already bind-mounts /var/run/docker.sock into job containers
|
||||
# automatically (because it has the socket mounted itself); adding
|
||||
# `volumes:` here again triggers a duplicate-mount-point error.
|
||||
container:
|
||||
image: catthehacker/ubuntu:runner-latest
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
timeout-minutes: 15
|
||||
if: ${{ vars.DEPLOY_ENABLED == 'true' }}
|
||||
outputs:
|
||||
|
||||
Reference in New Issue
Block a user