Ostree and git cache fails to upload on minimal systems

The minimal system gets build but when it is uploading the repository cache to the common place for the runners to share it fails.

Creating cache bst-1...
/builds/baserock/definitions/.cache/buildstream/sources/: found 6004 matching files 
Uploading cache.zip to http://10.131.43.226:9005/runner/project/951442/bst-1 
WARNING: Retrying...                               
Uploading cache.zip to http://10.131.43.226:9005/runner/project/951442/bst-1 
WARNING: Retrying...                               
Uploading cache.zip to http://10.131.43.226:9005/runner/project/951442/bst-1 
FATAL: Received: 500 Internal Server Error         
Failed to create cache
Job succeeded

See https://gitlab.com/baserock/definitions/-/jobs/77268996 and https://gitlab.com/baserock/definitions/-/jobs/77268997

This issue force the rest of the pipeline to fetch from internet these repositories which has been already fetched making the build much more slower.