Open vitorbaptista opened 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)
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.