From ae8ab88caeda2fdde46afce96a8b346e2abf8d20 Mon Sep 17 00:00:00 2001 From: Remi PLANEL <rplanel@pasteur.fr> Date: Thu, 16 Feb 2023 13:41:49 +0100 Subject: [PATCH] build gitlab page site --- .gitlab-ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..28eb5c1a --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,21 @@ +# The Docker image that will be used to build your app +image: node:19.5-bullseye-slim +# Functions that should be executed before the build script is run +before_script: + - npm ci + +cache: + paths: + - node_modules/ + +pages: + only: + - main + script: + - NUXT_APP_BASE_URL=/docus-test/ npm run generate + - rm -rf public + - mv .output/public public + artifacts: + paths: + # The folder that contains the files to be exposed at the Page URL + - public -- GitLab