Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mount directory does not exist, removing from cached folder... #27

Open
mcnesium opened this issue May 26, 2020 · 1 comment
Open

mount directory does not exist, removing from cached folder... #27

mcnesium opened this issue May 26, 2020 · 1 comment

Comments

@mcnesium
Copy link

I am trying to run it with this .drone.yml:

pipeline:

  restore-cache:
    image: drillster/drone-volume-cache
    restore: true
    mount:
      - /drone/.bundle
    volumes:
      - /var/cache/drone/test:/cache

  build:
    image: ruby
    environment:
      - BUNDLE_PATH=/drone/.bundle
    commands:
      - bundle install
      - bundle exec jekyll build

  rebuild-cache:
    image: drillster/drone-volume-cache
    rebuild: true
    mount:
      - /drone/.bundle
    volumes:
      - /var/cache/drone/test:/cache

but after the successful build the only output of rebuild-cache in drone says

/drone/.bundle does not exist, removing from cached folder...

and on the host system the directory /var/cache/drone/test remains empty. what is wrong with this pipeline?

@dromer
Copy link

dromer commented Oct 27, 2020

I think the plugin can only access local folders (from the working directory). So it will copy those folders back and forth between your volume mount.
(i'm having the same issue atm)

So you can only use a local path to a local folder, not a system-path like your /drone/.bundle

Use ./.bundle on the mount and your ruby environment and it will probably work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants