Caching of second target not working properly
Summary
Caching of second target during build image ci stage is not working properly.
Steps to reproduce
https://gitlab.gwdg.de/j.michal/grady/-/jobs/149041
https://gitlab.gwdg.de/j.michal/grady/-/jobs/149048
Example Project
What is the current bug behavior?
For the second target, no cache is used.