okfn-brasil / querido-diario-api

This is Querido Diário's API. It provides everything the frontend does and even more!
https://queridodiario.ok.org.br/api/docs
MIT License
48 stars 32 forks source link

[WIP] Cache podman layers in GitHub workflows (#12) #43

Open vitorbaptista opened 2 years ago

vitorbaptista commented 2 years ago

I enabled GitHub caching for podman's layer cache folder (~/.local/share/containers/) and reordered the commands in the Dockerfile to optimize the cache usage by keeping the things that change the most (i.e. the code) in the last build steps.

GitHub will automatically delete the cache if it's unused after a few days.

vitorbaptista commented 2 years ago

This PR is still WIP as the caching failed because there are files in ~/.local/shared/containers GitHub's user doesn't have permissions to read. You can check the failure in https://github.com/vitorbaptista/querido-diario-api/runs/3773069576. I'll check it out another day (if anyone wants to take a look, please feel free)