cirruslabs / cirrus-ci-agent

Agent to execute Cirrus CI tasks
Mozilla Public License 2.0
13 stars 6 forks source link

Investigate support of GHA Cache API in HTTP Cache #344

Closed fkorotkov closed 6 months ago

fkorotkov commented 6 months ago

This way tools like docker can benefit from our caching. See `https://docs.docker.com/build/cache/backends/gh

At some point I did the reverse and implemented our type of HTTP interface that proxied to GHA Cache so tools like Gradle could benefit from it. See https://github.com/cirruslabs/http-cache-action/blob/d4ad73d82969300cb0f27690148cb236739419f3/proxy/proxy.go#L109

I guess it might not be possible because of our usage of pre-signed URLs and how GHA API supports PATCHing and committing caches. On the other hand our local HTTP cache can persist some state...

Nevertheless it's worth investigating how Docker is using the API, were there any API updates since 2022 when I last checked the API while working on http-cache-action.