Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vitorbaptista
Copy link

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.

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
Copy link
Author

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Hacktoberfest label
Projects
Development

Successfully merging this pull request may close these issues.

2 participants