Cache Push v1.1.0

A new feature added to the new version (1.1.0) of the step, now you can ignore paths not only from the fingerprint check but from the final build cache archive as well. To do this, in the ignore_check_on_paths input simply add a ! before the path.

###Actual cache mechanism:

  • A path only in cache_paths:
    will be included in the build cache archive and will check for it’s content changes
  • A path in cache_paths and ignore_check_on_paths (for example: /cache/this/path)
    will be included in the build cache archive but won’t check for it’s content changes
  • A path in cache_paths and ignore_check_on_paths <- using ! as prefix (for example: !/cache/this/path)
    won’t be included in the build cache archive and won’t check for it’s content changes

The best use case for the ! prefix is when you need to cache a path but need to skip fingerprint check or excluding it from the archive.

For example:

  • cache_paths: /cache/this/path
  • ignore_check_on_paths: !*.apk

so your path (/cache/this/path) will be completely cached, but no *.apk files will be included in the cache archive, and it won’t affect fingerprint check as well.

:rocket::tada:

3 Likes