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

ci: don't reuse the cache from another branch #8252

Merged
merged 3 commits into from
Jul 9, 2024

Conversation

phiz71
Copy link
Member

@phiz71 phiz71 commented Jul 2, 2024

Issue

N/A

Description

The cache used in circleCI jobs, when building APIM, keeps on growing.
This is due to the fact that jobs for a dedicated branch can reuse cache from other branches.

It's a good point when it's the first time you build you branch, but then a new cache is saved (bigger than the original one).

This PR stops this behaviour. The first build will have to download dependencies, but the cache in next builds will be smaller and faster to download.


📚  View the storybook of this branch here

Copy link
Contributor

@ThibaudAV ThibaudAV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to have a chat about it. I have some question :please:
like

  • why we have a -<< parameters.jobName >>- ?
  • Where we save this keys ${config.cache.prefix}-<< parameters.jobName >>-{{ .Branch }} ?
    and some others
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment