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:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# Gitea Actions: pin image so docker CLI is present and mount the
|
# Gitea Actions: pin image so docker CLI is present. The runner
|
||||||
# host docker socket so build-push-action can push to the registry.
|
# already bind-mounts /var/run/docker.sock into job containers
|
||||||
# The runner declares /var/run/docker.sock in valid_volumes.
|
# automatically (because it has the socket mounted itself); adding
|
||||||
|
# `volumes:` here again triggers a duplicate-mount-point error.
|
||||||
container:
|
container:
|
||||||
image: catthehacker/ubuntu:runner-latest
|
image: catthehacker/ubuntu:runner-latest
|
||||||
volumes:
|
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
if: ${{ vars.DEPLOY_ENABLED == 'true' }}
|
if: ${{ vars.DEPLOY_ENABLED == 'true' }}
|
||||||
outputs:
|
outputs:
|
||||||
|
|||||||
Reference in New Issue
Block a user