ci: aggressive caching for docs related jobs
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2286>
This commit is contained in:
parent
7ff81e35f3
commit
ad3a74fd97
|
@ -41,6 +41,15 @@ variables:
|
||||||
files: [api/poetry.lock]
|
files: [api/poetry.lock]
|
||||||
paths: [api/.venv]
|
paths: [api/.venv]
|
||||||
|
|
||||||
|
# Cache for docs related jobs
|
||||||
|
docs_cache: &docs_cache
|
||||||
|
- key: docs-pip
|
||||||
|
paths: [$PIP_CACHE_DIR]
|
||||||
|
- key:
|
||||||
|
prefix: docs-venv
|
||||||
|
files: [docs/poetry.lock]
|
||||||
|
paths: [docs/.venv]
|
||||||
|
|
||||||
default:
|
default:
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
|
@ -108,9 +117,7 @@ review_docs:
|
||||||
environment:
|
environment:
|
||||||
name: review/docs/$CI_COMMIT_REF_NAME
|
name: review/docs/$CI_COMMIT_REF_NAME
|
||||||
url: http://$CI_PROJECT_NAMESPACE.pages.funkwhale.audio/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/docs-review/index.html
|
url: http://$CI_PROJECT_NAMESPACE.pages.funkwhale.audio/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/docs-review/index.html
|
||||||
cache:
|
cache: *docs_cache
|
||||||
key: "$CI_PROJECT_ID__sphinx"
|
|
||||||
paths: [$PIP_CACHE_DIR]
|
|
||||||
before_script:
|
before_script:
|
||||||
- mkdir docs-review
|
- mkdir docs-review
|
||||||
- cd docs
|
- cd docs
|
||||||
|
@ -298,9 +305,7 @@ build_docs:
|
||||||
BUILD_PATH: "../public"
|
BUILD_PATH: "../public"
|
||||||
GIT_STRATEGY: clone
|
GIT_STRATEGY: clone
|
||||||
GIT_DEPTH: 0
|
GIT_DEPTH: 0
|
||||||
cache:
|
cache: *docs_cache
|
||||||
key: "$CI_PROJECT_ID__sphinx"
|
|
||||||
paths: [$PIP_CACHE_DIR]
|
|
||||||
before_script:
|
before_script:
|
||||||
- cd docs
|
- cd docs
|
||||||
- apt-get update
|
- apt-get update
|
||||||
|
|
Loading…
Reference in New Issue