Skip to content

No cache for ./node_modules #29

Description

@imteekay

I'm running this plugin in our CI (drone v0.8) but it seems that it doesn't cache the node modules folder.

My pipeline looks like this:

restore-cache:
  image: drillster/drone-volume-cache
  restore: true
  cache_key: [DRONE_REPO_OWNER, DRONE_REPO_NAME, DRONE_BRANCH]
  mount:
    - ./node_modules
  volumes:
    - /tmp/cache

install:
  image: node:14.15.4
  commands:
    - npm install

rebuild-cache:
  image: drillster/drone-volume-cache
  rebuild: true
  cache_key: [DRONE_REPO_OWNER, DRONE_REPO_NAME, DRONE_BRANCH]
  mount:
    - ./node_modules
  volumes:
    - /tmp/cache

In the first commit, I get this from the rebuild-cache step

Rebuilding cache for folder ./node_modules...

In the second commit, I get a No cache for ./node_modules.

Am I missing anything here in these steps?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions