ci: rework build_front job
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2286>
This commit is contained in:
parent
c3722a45e3
commit
66884a41f2
|
@ -305,25 +305,21 @@ build_docs:
|
||||||
|
|
||||||
build_front:
|
build_front:
|
||||||
stage: build
|
stage: build
|
||||||
image: node:18-alpine
|
|
||||||
|
image: $CI_REGISTRY/funkwhale/ci/node-python:18
|
||||||
variables:
|
variables:
|
||||||
<<: *keep_git_files_permissions
|
<<: *keep_git_files_permissions
|
||||||
|
cache:
|
||||||
|
paths: [$YARN_CACHE_FOLDER]
|
||||||
before_script:
|
before_script:
|
||||||
- apk add --no-cache jq bash coreutils python3
|
|
||||||
- cd front
|
- cd front
|
||||||
|
- yarn install --frozen-lockfile
|
||||||
script:
|
script:
|
||||||
- yarn install
|
- yarn run build:deployment
|
||||||
# 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')
|
|
||||||
artifacts:
|
artifacts:
|
||||||
name: front_${CI_COMMIT_REF_NAME}
|
name: front_${CI_COMMIT_REF_NAME}
|
||||||
paths:
|
paths:
|
||||||
- front/dist/
|
- front/dist
|
||||||
only:
|
|
||||||
- tags@funkwhale/funkwhale
|
|
||||||
- stable@funkwhale/funkwhale
|
|
||||||
- develop@funkwhale/funkwhale
|
|
||||||
|
|
||||||
build_api:
|
build_api:
|
||||||
stage: build
|
stage: build
|
||||||
|
|
Loading…
Reference in New Issue