Possibility of "global" volumes?

I’ve scoured the documentation, github issues and the discourse so forgive me if this has been requested before. Afaik, this isn’t an enterprise feature but correct me if I’m wrong.

It would be useful to be able to define a host-volume per .drone.yml instead of for each stage, roughly as follows:

workspace:
  volumes:
    - /var/run/docker.sock:/var/run/docker.sock

pipeline:
  build:
    image: docker
    commands:
      - docker build -t <tag> .

  test:
    image: docker
    commands:
      - docker run ..

There is a DRONE_VOLUME variable that you can pass to your server, for example:

DRONE_VOLUME=/var/run/docker.sock:/var/run/docker.sock

The above volume would then be applied to every pipeline

Does this apply to every container or only those running in privileged mode?

It applies to every container.

Good to know, thanks