kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
ci: rework build_api_schema job
- We don't need any services - Use make in the CI steps - Remove unused variablesspectacular_schema
rodzic
d68d0170c4
commit
48fc1ed73d
|
@ -338,23 +338,12 @@ build_api_schema:
|
||||||
- changes: [docs/**/*]
|
- changes: [docs/**/*]
|
||||||
|
|
||||||
image: $CI_REGISTRY/funkwhale/ci/python-funkwhale-api:3.11
|
image: $CI_REGISTRY/funkwhale/ci/python-funkwhale-api:3.11
|
||||||
services:
|
|
||||||
- postgres:15-alpine
|
|
||||||
- redis:7-alpine
|
|
||||||
cache: *api_cache
|
cache: *api_cache
|
||||||
variables:
|
|
||||||
DATABASE_URL: "postgresql://postgres@postgres/postgres"
|
|
||||||
FUNKWHALE_URL: "https://funkwhale.ci"
|
|
||||||
DJANGO_SETTINGS_MODULE: config.settings.local
|
|
||||||
POSTGRES_HOST_AUTH_METHOD: trust
|
|
||||||
CACHE_URL: "redis://redis:6379/0"
|
|
||||||
API_TYPE: "v1"
|
|
||||||
before_script:
|
before_script:
|
||||||
- cd api
|
- cd api
|
||||||
- make install
|
- make install
|
||||||
- poetry run funkwhale-manage migrate
|
|
||||||
script:
|
script:
|
||||||
- poetry run funkwhale-manage spectacular --file ../docs/schema.yml
|
- make schema SCHEMA_FILE=../docs/schema.yml
|
||||||
artifacts:
|
artifacts:
|
||||||
expire_in: 2 weeks
|
expire_in: 2 weeks
|
||||||
paths:
|
paths:
|
||||||
|
|
Ładowanie…
Reference in New Issue