From 9cf031ed67536f2ec9fbea7a5e7e31b9355f60b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20Schr=C3=B6tler?= <niklas@allround.digital> Date: Mon, 27 Nov 2023 02:59:58 +0100 Subject: [PATCH] CI: Implemented building the react project --- .gitlab-ci.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6893bbc..93a969b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,18 +17,20 @@ sonarqube-check: rules: - if: $CI_COMMIT_BRANCH == 'master' +build: + image: node:14.15.3-buster-slim + stage: build + script: + - npm install + - npm run build + artifacts: + paths: + - build/ pages: stage: deploy script: - - mkdir public - - mv js public/js - - mv css public/css - - mv panels public/panels - - mv config public/config - - mv content public/content - - mv index.html public/index.html - - mv favicon.png public/favicon.png + - mv build public artifacts: paths: - public/ -- GitLab