cache docs docker build as well

This commit is contained in:
Aidos Kanapyanov 2025-02-23 06:00:34 +05:00
parent 0a0a88c7d1
commit 6f247d69e6

View File

@ -68,6 +68,11 @@ docker compose -f docker-compose.local.yml run --rm \
django python manage.py check --settings=config.settings.production --deploy --database default --fail-level WARNING
# Generate the HTML for the documentation
docker buildx bake -f docker-compose.docs.yml --load docs \
--allow fs=* \
--set docs.cache-from=type=gha,scope=docs-cached \
--set docs.cache-to=type=gha,scope=docs-cached,mode=max \
docker compose -f docker-compose.docs.yml run --rm docs make html
# Run npm build script if package.json is present