Version 1.0.0
Language EN

Volumes

Volumes can be used to access file and folders on the host machine, and share files and folders between pipeline steps.

Bind Mounts

Host mounts allow you to mount an absolute path on the host machine into a pipeline step. IMPORTANT: this setting is only available to trusted repositories, since mounting host machine volumes is a security risk.

kind: pipeline
name: default

steps:
- name: build
  image: node
  volumes:
  - name: cache
    path: /tmp/cache
  commands:
  - npm install
  - npm test

volumes:
- name: cache
  host:
    path: /var/lib/cache

Temporary Mounts

Temporary mounts allow you to create a temporary volume that is available for the duration of you pipeline execution. This can be very useful when you need to share files or folders between pipeline steps.

kind: pipeline
name: default

steps:
- name: frontend
  image: node
  volumes:
  - name: cache
    path: /tmp/cache
  commands:
  - npm install
  - npm test

- name: backend
  image: golang
  volumes:
  - name: cache
    path: /tmp/cache
  commands:
  - go build
  - go test

volumes:
- name: cache
  temp: {}

Getting Help

Mailing List
Search for information in the mailing list archives, or post a question.
Chat Support
Real-time chat support from maintainers and community members.