diff options
Diffstat (limited to 'pse-dashboard/.gitlab-ci.yml')
-rw-r--r-- | pse-dashboard/.gitlab-ci.yml | 31 |
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 + |