Add pip cache
This commit is contained in:
parent
adb2b3aa8b
commit
284d139968
1 changed files with 9 additions and 4 deletions
|
@ -6,12 +6,11 @@ static:
|
||||||
image: node:alpine
|
image: node:alpine
|
||||||
stage: build
|
stage: build
|
||||||
cache:
|
cache:
|
||||||
key: ${CI_COMMIT_REF_SLUG}
|
key: npm-$CI_COMMIT_REF_SLUG
|
||||||
paths:
|
paths:
|
||||||
- .npm
|
- "$CI_PROJECT_DIR/.npm-cache"
|
||||||
- .cache
|
|
||||||
script:
|
script:
|
||||||
- npm ci --cache .npm --prefer-offline
|
- npm ci --cache .npm-cache --prefer-offline
|
||||||
- npm run build
|
- npm run build
|
||||||
artifacts:
|
artifacts:
|
||||||
name: '$CI_JOB_ID-node_modules'
|
name: '$CI_JOB_ID-node_modules'
|
||||||
|
@ -23,6 +22,12 @@ static:
|
||||||
pip:
|
pip:
|
||||||
image: python:3.9-slim
|
image: python:3.9-slim
|
||||||
stage: build
|
stage: build
|
||||||
|
variables:
|
||||||
|
PIP_CACHE_DIR: $CI_PROJECT_DIR/.pip-cache
|
||||||
|
cache:
|
||||||
|
key: pip-$CI_COMMIT_REF_SLUG
|
||||||
|
paths:
|
||||||
|
- "$CI_PROJECT_DIR/.pip-cache"
|
||||||
script:
|
script:
|
||||||
- python -m venv env
|
- python -m venv env
|
||||||
- source env/bin/activate
|
- source env/bin/activate
|
||||||
|
|
Loading…
Reference in a new issue