ci: rework build_front job

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2286>
environments/review-docs-poetr-umn39l/deployments/16928
jo 2022-12-23 16:15:04 +01:00
rodzic c3722a45e3
commit 66884a41f2
1 zmienionych plików z 7 dodań i 11 usunięć

Wyświetl plik

@ -305,25 +305,21 @@ build_docs:
build_front:
stage: build
image: node:18-alpine
image: $CI_REGISTRY/funkwhale/ci/node-python:18
variables:
<<: *keep_git_files_permissions
cache:
paths: [$YARN_CACHE_FOLDER]
before_script:
- apk add --no-cache jq bash coreutils python3
- cd front
- yarn install --frozen-lockfile
script:
- yarn install
# this is to ensure we don't have any errors in the output,
# cf https://dev.funkwhale.audio/funkwhale/funkwhale/issues/169
- yarn run build:deployment | tee /dev/stderr | (! grep -i 'ERROR in')
- yarn run build:deployment
artifacts:
name: front_${CI_COMMIT_REF_NAME}
paths:
- front/dist/
only:
- tags@funkwhale/funkwhale
- stable@funkwhale/funkwhale
- develop@funkwhale/funkwhale
- front/dist
build_api:
stage: build