Closed pquerna closed 6 months ago
I wanted a cache to easily expire every month (and get rebuilt), so it was helpful to have date as a template option, eg:
date
key: "z1-cache-{{ id }}-{{ runner.os }}-{{ checksum 'yarn.lock' }}-{{ date '+%Y-%m'}}"
Hi @pquerna! Thanks for the PR.
Released as https://github.com/nienbo/cache-buildkite-plugin/releases/tag/v2.4.16 🚀
I wanted a cache to easily expire every month (and get rebuilt), so it was helpful to have
date
as a template option, eg: