From 48fc1ed73d903b7ad8479429a9e5d343116f163c Mon Sep 17 00:00:00 2001 From: jo Date: Sat, 4 Feb 2023 22:00:26 +0100 Subject: [PATCH] ci: rework build_api_schema job - We don't need any services - Use make in the CI steps - Remove unused variables --- .gitlab-ci.yml | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f8e14f8b1..78b1f3eb6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -338,23 +338,12 @@ build_api_schema: - changes: [docs/**/*] image: $CI_REGISTRY/funkwhale/ci/python-funkwhale-api:3.11 - services: - - postgres:15-alpine - - redis:7-alpine 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: - cd api - make install - - poetry run funkwhale-manage migrate script: - - poetry run funkwhale-manage spectacular --file ../docs/schema.yml + - make schema SCHEMA_FILE=../docs/schema.yml artifacts: expire_in: 2 weeks paths: