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

It doesn't work to save last build SHA in CircleCI cache #225

Open
oscar60310 opened this issue Sep 13, 2022 · 0 comments
Open

It doesn't work to save last build SHA in CircleCI cache #225

oscar60310 opened this issue Sep 13, 2022 · 0 comments

Comments

@oscar60310
Copy link

We saved the last build SHA in CircleCI cache as the reference for next build
https://github.com/nrwl/nx-examples/blob/master/.circleci/config.yml#L139-L142

- save_cache:
    key: last-deploy-sha
    paths:
      - dist/last-deploy.txt

But CircleCI cache is immutable, so saving an existing cache doesn't take any effect.

Skipping cache generation, cache already exists for key: last-deploy-sha
Found one created at 2022-08-29 17:03:12 +0000 UTC

We should find other solutions to save the SHA.

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

1 participant