Commit 34a983ea authored by okhin's avatar okhin

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: ...@@ -4,7 +4,6 @@ variables:
cache: cache:
paths: paths:
- "pip-cache" - "pip-cache"
- "static"
- "env" - "env"
key: "$CI_PROJECT_ID" key: "$CI_PROJECT_ID"
...@@ -30,11 +29,16 @@ unit tests: ...@@ -30,11 +29,16 @@ unit tests:
static build: static build:
stage: test stage: test
script: script:
- yarn install - virtualenv -p python3 env
- webpack
- source ./env/bin/activate - source ./env/bin/activate
- pip install -r requirements.txt - 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 - echo "SECRET_KEY = '$(pwgen 20 1)'" >> ./project/settings/env.py
- ./manage.py collectstatic - ./manage.py collectstatic
tags: [preprod] 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