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

[Request] Add example on how to cache across jobs. #205

Open
darkseid-is opened this issue Sep 9, 2024 · 1 comment
Open

[Request] Add example on how to cache across jobs. #205

darkseid-is opened this issue Sep 9, 2024 · 1 comment

Comments

@darkseid-is
Copy link

I will be quite helpful to add and example of how to cache across jobs. Setting same prefix-key, shared-key and key isn't working.

Thanks You.

@chrisgrounds
Copy link

chrisgrounds commented Dec 6, 2024

Not sure if this is a bug or just something I'm missing, but I also can't get it to share the cache across jobs @Swatinem.

For example, within the same pipeline:

Job 1 produces a cache key of: "v0-rust-{shared-key}-6e4da2ef-b4e4aeb9"
Job 2 produces a cache key of: "v0-rust-{shared-key}-e3066001-b4e4aeb9"

(italics for the bit that's different, but shouldn't be as far as I can tell).

My understanding based on the documentation is that setting shared-key should be enough to ensure the cache key is the same across jobs within a pipeline build. Is that not right?

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