Skip to content
Snippets Groups Projects
Commit 5f308fe5 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

Use Poetry, update Docker image

parent c347fb02
No related branches found
No related tags found
No related merge requests found
...@@ -14,21 +14,21 @@ stages: ...@@ -14,21 +14,21 @@ stages:
build-openapi-scheme: build-openapi-scheme:
stage: build stage: build
image: python:3.9-alpine image: python:3.10-alpine
variables: variables:
SECRET_KEY: not-a-very-secret-key SECRET_KEY: not-a-very-secret-key
DJANGO_SETTINGS_MODULE: steering.settings DJANGO_SETTINGS_MODULE: steering.settings
# steering.settings switches to sqlite if the VIRTUAL_ENV environment # steering.settings switches to sqlite if the VIRTUAL_ENV environment
# variable is present. It’s probably a good idea to refactor this to # variable is present. It’s probably a good idea to refactor this to
# something more explicit. # something more explicit.
VIRTUAL_ENV: 1
OPENAPI_JSON: ./public/api.json OPENAPI_JSON: ./public/api.json
before_script: before_script:
- apk add gcc musl-dev zlib-dev jpeg-dev libmagic - apk add gcc musl-dev zlib-dev jpeg-dev libmagic
- pip install -r requirements.txt - pip install poetry==1.2.1
- poetry install --without dev,test --no-root
script: script:
- mkdir public - mkdir public
- python3 -m django spectacular --validate --lang en --format openapi-json --file $OPENAPI_JSON - poetry run python manage.py spectacular --validate --lang en --format openapi-json --file $OPENAPI_JSON
artifacts: artifacts:
paths: paths:
- $OPENAPI_JSON - $OPENAPI_JSON
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment