Commit 34a983ea authored by okhin's avatar okhin
Browse files

Updating the CI/CD to correctly work around cache

parent 1a468b02
Pipeline #1036 failed with stage
in 7 minutes and 9 seconds
......@@ -4,7 +4,6 @@ variables:
cache:
paths:
- "pip-cache"
- "static"
- "env"
key: "$CI_PROJECT_ID"
......@@ -30,11 +29,16 @@ unit tests:
static build:
stage: test
script:
- yarn install
- webpack
- virtualenv -p python3 env
- source ./env/bin/activate
- pip install -r requirements.txt
- echo "DEBUG = True" > ./project/settings/env.py
- yarn install
- webpack
- echo "DEBUG = False" > ./project/settings/env.py
- echo "SECRET_KEY = '$(pwgen 20 1)'" >> ./project/settings/env.py
- ./manage.py collectstatic
tags: [preprod]
artifacts:
paths:
- static/
expire_in: 1 day
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment