fix(ci): drop docker.sock workflow mount (runner auto-mounts it)
Deploy / build (push) Failing after 2m18s
Deploy / deploy (push) Has been skipped
CI / ci (push) Successful in 11m11s

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:
2026-04-29 12:17:25 +02:00
parent 84b131d4f0
commit 6075aa22e1
+4 -5
View File
@@ -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: