ci: rework review_front job
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2286>
This commit is contained in:
parent
8001565b46
commit
d15846a3a4
|
@ -42,38 +42,34 @@ stages:
|
||||||
|
|
||||||
review_front:
|
review_front:
|
||||||
interruptible: true
|
interruptible: true
|
||||||
stage: review
|
|
||||||
image: node:18-alpine
|
|
||||||
when: manual
|
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
stage: review
|
||||||
|
rules:
|
||||||
|
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||||
|
when: manual
|
||||||
|
|
||||||
|
image: $CI_REGISTRY/funkwhale/ci/node-python:18
|
||||||
variables:
|
variables:
|
||||||
BASE_URL: /-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/front-review/
|
BASE_URL: /-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/front-review/
|
||||||
VUE_APP_ROUTER_BASE_URL: /-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/front-review/
|
VUE_APP_ROUTER_BASE_URL: /-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/front-review/
|
||||||
VUE_APP_INSTANCE_URL: https://demo.funkwhale.audio
|
VUE_APP_INSTANCE_URL: https://demo.funkwhale.audio
|
||||||
NODE_ENV: review
|
NODE_ENV: review
|
||||||
|
environment:
|
||||||
|
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
|
||||||
|
cache:
|
||||||
|
paths: [$YARN_CACHE_FOLDER]
|
||||||
before_script:
|
before_script:
|
||||||
- apk add --no-cache jq bash coreutils python3
|
|
||||||
- rm -rf front-review
|
|
||||||
- mkdir front-review
|
- mkdir front-review
|
||||||
- cd front
|
- cd front
|
||||||
|
- yarn install --frozen-lockfile
|
||||||
script:
|
script:
|
||||||
- yarn install
|
- yarn run build --base ./
|
||||||
# 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 --base ./ | tee /dev/stderr | (! grep -i 'ERROR in')
|
|
||||||
- cp -r dist/* ../front-review
|
- cp -r dist/* ../front-review
|
||||||
artifacts:
|
artifacts:
|
||||||
expire_in: 2 weeks
|
expire_in: 2 weeks
|
||||||
paths:
|
paths:
|
||||||
- front-review
|
- front-review
|
||||||
cache:
|
|
||||||
key: "funkwhale__front_dependencies"
|
|
||||||
paths:
|
|
||||||
- front/node_modules
|
|
||||||
- front/yarn.lock
|
|
||||||
environment:
|
|
||||||
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
|
|
||||||
|
|
||||||
review_docs:
|
review_docs:
|
||||||
interruptible: true
|
interruptible: true
|
||||||
|
|
Loading…
Reference in New Issue