Verified Commit 227595a5 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

CI setup

parent 8947c0ac
Pipeline #5302 passed with stage
in 2 minutes and 19 seconds
stages:
- review
- build
review:
stage: review
image: buildkite/puppeteer
variables:
GIT_STRATEGY: clone
VUE_APP_ROUTER_BASE_URL: /-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/review/
before_script:
- apt-get update && apt-get install -y jq
- yarn install
script:
- yarn lint
- yarn i18n-compile
- yarn build
- rm -rf review
- mv dist review
cache:
key: front_node_modules
paths:
- "node_modules"
artifacts:
expire_in: 2 weeks
paths:
- review
only:
- branches
except:
- master@retribute.me/retribute.me
tags:
- docker
environment:
name: review/front/$CI_COMMIT_REF_NAME
url: http://$CI_PROJECT_NAMESPACE.pages.funkwhale.audio/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/review/index.html
pages:
stage: build
image: buildkite/puppeteer
variables:
GIT_STRATEGY: clone
before_script:
- apt-get update && apt-get install -y jq
- yarn install
script:
- yarn lint
- yarn i18n-compile
- yarn build
- rm -rf public
- mv dist public
# ugly hack from https://gitlab.com/gitlab-org/gitlab-pages/issues/23#note_57499396
# until Gitlab Pages has better support for SPA
- cp public/index.html public/404.html
# Gzip compression, cf https://webd97.de/post/gitlab-pages-compression/
- gzip -k -6 $(find public -type f)
cache:
key: front_node_modules
paths:
- "node_modules"
artifacts:
paths:
- public/
only:
- master@retribute.me/retribute.me
tags:
- docker
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment