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

Development: use --build-arg to invalidate cache #244

Merged
merged 3 commits into from
Dec 4, 2024

Conversation

humitos
Copy link
Member

@humitos humitos commented Dec 3, 2024

Create a hash of all the dependencies files and use it as a --build-arg to invalidate the cache when the hash changes.

Related #241
Related readthedocs/readthedocs.org#11816

Create a hash of all the dependencies files and use it as a `--build-arg` to
invalidate the cache when the hash changes.

Related #241
humitos added a commit to readthedocs/readthedocs.org that referenced this pull request Dec 3, 2024
Use `ARG` in Dockerfile to invalidate the cache when this argument changes.

Requires readthedocs/common#244
dockerfiles/tasks.py Outdated Show resolved Hide resolved
dockerfiles/tasks.py Outdated Show resolved Hide resolved
@humitos humitos requested review from agjohnson and stsewd December 4, 2024 15:27
@humitos
Copy link
Member Author

humitos commented Dec 4, 2024

I've tested it locally and it works great! 🚀

@humitos humitos merged commit 1e5d46c into main Dec 4, 2024
@humitos humitos deleted the humitos/docker-cache-argument branch December 4, 2024 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants