I build multiple parts of my application in separate jobs in a github action workflow.
They all look like this, one for frontend one for worker and backend respectively:
The problem is, that only the job that finished last in the previous run gets a cache hit.
All other images are getting built fully.
On the next run this changes obviously, as the freshly build image finished last.
I tried to specify a ref like this (different for all images):
Behaviour
I build multiple parts of my application in separate jobs in a github action workflow. They all look like this, one for
frontend
one forworker
andbackend
respectively:The problem is, that only the job that finished last in the previous run gets a cache hit. All other images are getting built fully. On the next run this changes obviously, as the freshly build image finished last.
I tried to specify a
ref
like this (different for all images):But this seems to get ignored, as the behavior is unchanged.
Steps to reproduce this issue
cache-from
andcache-to
) withtype=gha
Expected behaviour
Actual behaviour
Attachments
Nothing changed between these runs: 1.
2.
3.