chore(gitlab-ci): format for valid YAML anchor syntax

[skip ci]
This commit is contained in:
jon r 2025-04-03 14:19:28 +02:00
parent d83daf190f
commit 2bcc674197
1 changed files with 43 additions and 24 deletions

View File

@ -23,35 +23,41 @@ variables:
.shared_caches: .shared_caches:
# Cache for front related jobs # Cache for front related jobs
front_cache: &front_cache yarn_cache: &yarn_cache
- key: front-yarn key: front-yarn-$CI_COMMIT_REF_SLUG
paths: [$YARN_CACHE_FOLDER] paths: [$YARN_CACHE_FOLDER]
- key: node_cache: &node_cache
prefix: front-node_modules key:
files: [front/yarn.lock] prefix: front-node_modules-$CI_COMMIT_REF_SLUG
paths: [front/node_modules] files: [front/yarn.lock]
- key: paths: [front/node_modules]
prefix: front-lint lint_cache: &lint_cache
files: key:
- front/.eslintcache prefix: front-lint-$CI_COMMIT_REF_SLUG
- front/tsconfig.tsbuildinfo files:
- front/.eslintcache
- front/tsconfig.tsbuildinfo
cypress_cache: &cypress_cache
key: cypress-cache-$CI_COMMIT_REF_SLUG
paths:
- /root/.cache/Cypress
# Cache for api related jobs # Cache for api related jobs
# Include the python version to prevent loosing caches in the test matrix # Include the python version to prevent loosing caches in the test matrix
api_cache: &api_cache api_cache: &api_cache
- key: api-pip-$PYTHON_VERSION - key: api-pip-$CI_COMMIT_REF_SLUG
paths: [$PIP_CACHE_DIR] paths: [$PIP_CACHE_DIR]
- key: - key:
prefix: api-venv-$PYTHON_VERSION prefix: api-venv-$CI_COMMIT_REF_SLUG
files: [api/poetry.lock] files: [api/poetry.lock]
paths: [api/.venv] paths: [api/.venv]
# Cache for docs related jobs # Cache for docs related jobs
docs_cache: &docs_cache docs_cache: &docs_cache
- key: docs-pip - key: docs-pip-$CI_COMMIT_REF_SLUG
paths: [$PIP_CACHE_DIR] paths: [$PIP_CACHE_DIR]
- key: - key:
prefix: docs-venv prefix: docs-venv-$CI_COMMIT_REF_SLUG
files: [docs/poetry.lock] files: [docs/poetry.lock]
paths: [docs/.venv] paths: [docs/.venv]
@ -97,7 +103,10 @@ review_front:
environment: environment:
name: review/front/$CI_COMMIT_REF_NAME name: review/front/$CI_COMMIT_REF_NAME
url: http://$CI_PROJECT_NAMESPACE.pages.funkwhale.audio/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/front-review/index.html url: http://$CI_PROJECT_NAMESPACE.pages.funkwhale.audio/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/front-review/index.html
cache: *front_cache cache:
- *yarn_cache
- *node_cache
- *lint_cache
before_script: before_script:
- mkdir front-review - mkdir front-review
- cd front - cd front
@ -191,7 +200,10 @@ lint_front:
- changes: [front/**/*] - changes: [front/**/*]
image: $CI_REGISTRY/funkwhale/ci/node-python:18 image: $CI_REGISTRY/funkwhale/ci/node-python:18
cache: *front_cache cache:
- *yarn_cache
- *node_cache
- *lint_cache
before_script: before_script:
- cd front - cd front
- yarn install --frozen-lockfile - yarn install --frozen-lockfile
@ -276,7 +288,10 @@ test_front:
- changes: [front/**/*] - changes: [front/**/*]
image: $CI_REGISTRY/funkwhale/ci/node-python:18 image: $CI_REGISTRY/funkwhale/ci/node-python:18
cache: *front_cache cache:
- *yarn_cache
- *node_cache
- *lint_cache
before_script: before_script:
- cd front - cd front
- yarn install --frozen-lockfile - yarn install --frozen-lockfile
@ -317,10 +332,11 @@ test_integration:
name: cypress/included:13.6.4 name: cypress/included:13.6.4
entrypoint: [''] entrypoint: ['']
cache: cache:
- *front_cache - *yarn_cache
- key: - *node_cache
paths: - *lint_cache
- /root/.cache/Cypress - *cypress_cache
before_script: before_script:
- cd front - cd front
- yarn install - yarn install
@ -402,7 +418,10 @@ build_front:
variables: variables:
<<: *keep_git_files_permissions <<: *keep_git_files_permissions
NODE_OPTIONS: --max-old-space-size=4096 NODE_OPTIONS: --max-old-space-size=4096
cache: *front_cache cache:
- *yarn_cache
- *node_cache
- *lint_cache
before_script: before_script:
- cd front - cd front
- yarn install --frozen-lockfile - yarn install --frozen-lockfile