Possible to use tmpfs with services in Drone 2.x?

Found this old topic, but it doesn’t really provide any explanation on how you would actually use it to achieve using tmpfs more than link to documentation that is not helpful. Someone has tried to ask for more information ~2 years later without any response.

There’s also this topic which is even older and referring to you added support for tmpfs. Sounds like you might have removed support for tmpfs some time ago?

Could someone bring some clarity to this subject. That would be very helpful.


Just noticed that Drone documentation has been updated in regard to tmpfs volumes, see Temporary Volumes | Drone.

Took a chance and tested this with services and I actually got it to work. This might be helpful for someone.

kind: pipeline
// pipeline config...

- environment:
    PGDATA: /var/lib/postgresql/data/pgdata
  image: postgres:12.3-alpine
  name: postgres
  - name: postgres
    path: /var/lib/postgresql/data/pgdata

 - ...

- name: postgres
    medium: memory