From 4b8432354744b23ab8f6ab94e500c3ea1b786e97 Mon Sep 17 00:00:00 2001 From: Eliot Berriot <contact@eliotberriot.com> Date: Sat, 30 Mar 2019 19:01:47 +0100 Subject: [PATCH] =?UTF-8?q?Added=20CI=C2=A0script?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..5cceead2 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,31 @@ +stages: + - build + + +pages: + stage: build + image: funkwhale/front-base + variables: + GIT_STRATEGY: clone + before_script: + - 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 + cache: + key: front_node_modules + paths: + - "node_modules" + artifacts: + paths: + - public/ + only: + - master@funkwhale/funkwhale.audio + tags: + - docker -- GitLab