summaryrefslogtreecommitdiff
path: root/pse-dashboard/.gitlab-ci.yml
diff options
context:
space:
mode:
authorOrangerot <purple@orangerot.dev>2024-06-19 00:14:49 +0200
committerOrangerot <purple@orangerot.dev>2024-06-27 12:11:14 +0200
commit5b8851b6c268d0e93c158908fbfae9f8473db5ff (patch)
tree7010eb85d86fa2da06ea4ffbcdb01a685d502ae8 /pse-dashboard/.gitlab-ci.yml
Initial commitHEADmain
Diffstat (limited to 'pse-dashboard/.gitlab-ci.yml')
-rw-r--r--pse-dashboard/.gitlab-ci.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/pse-dashboard/.gitlab-ci.yml b/pse-dashboard/.gitlab-ci.yml
new file mode 100644
index 0000000..5d70b0c
--- /dev/null
+++ b/pse-dashboard/.gitlab-ci.yml
@@ -0,0 +1,31 @@
+variables:
+ #BASE_DIR: $CI_PAGES_URL
+ BASE_DIR: /pse-dashboard/
+
+image: node
+
+stages:
+ - test
+ - deploy
+
+lint:
+ stage: test
+ script:
+ - npm install
+ - npm run lint
+ allow_failure: true
+
+
+pages:
+ stage: deploy
+ script:
+ - npm install
+ - npm run build
+ - rm -rf public
+ - mv dist public
+ artifacts:
+ paths:
+ - public
+ rules:
+ - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
+