Create cache per branch
We are currently using cache per distro. We are also sharing it between branch builds and tag builds.
This is invalidating cache very fast slowing down the builds.
Example:
Replace https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/.gitlab-ci.yml#L321 with the name of the branch. If a tag is pushed, do some processing to match the tag with the stable branch. So if 8.15.0 tag is pushed, use 8-15-stable cache (also ee).
@balasankarc Can you take a look at whether we can easily change this behaviour with a cache per branch? Can you also check how hard would it be to parse the tag and match the closest stable branch to reuse the cache?