drone / go-convert

Package convert provides tools for converting pipeline configuration files to the Drone format.
Apache License 2.0
11 stars 19 forks source link

[bitbucket] multiple caches and granular cache keys #9

Open bradrydzewski opened 1 year ago

bradrydzewski commented 1 year ago

Bitbucket supports multiple caches and granular cache keys. Example:

definitions:
  caches:
    my-bundler-cache:
      key:
        files:
          - Gemfile.lock
          - "**/*.gemspec"
      path: vendor/bundle
    my-npm-cache:
      key:
        files:
          - package.json
      path: node_modules
hemanthmantri commented 1 year ago

This is similar to having multiple cache steps in a pipeline and we can provide keys for each step. We should check if we support key: {{ checksum file1, file2, file3}}