Skip to content
Snippets Groups Projects
Commit 8cf171ed authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

fix(cache): always keep cache

parent 924b55fd
Branches
Tags
No related merge requests found
...@@ -812,15 +812,15 @@ stages: ...@@ -812,15 +812,15 @@ stages:
- name: "$TBC_TRACKING_IMAGE" - name: "$TBC_TRACKING_IMAGE"
command: ["--service", "python", "6.10.0"] command: ["--service", "python", "6.10.0"]
variables: variables:
# most Python tools honour XDG specs # set local cache dir; most Python tools honour XDG specs
XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache" XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache"
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
# Poetry support: force virtualenv not in project dir & use local cache dir
POETRY_CACHE_DIR: "$CI_PROJECT_DIR/.cache/poetry" POETRY_CACHE_DIR: "$CI_PROJECT_DIR/.cache/poetry"
POETRY_VIRTUALENVS_IN_PROJECT: "false"
PIPENV_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pipenv" PIPENV_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pipenv"
POETRY_VIRTUALENVS_IN_PROJECT: "false"
cache: cache:
key: "$CI_COMMIT_REF_SLUG-python" key: "$CI_COMMIT_REF_SLUG-python"
when: always
paths: paths:
- .cache - .cache
before_script: before_script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment