From 1d2c268e765519f925fc393eafa6a6d17f9acfc2 Mon Sep 17 00:00:00 2001 From: Xeovalyte Date: Tue, 4 Oct 2022 14:39:55 +0000 Subject: [PATCH] Add ci file --- .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 0000000..0cd2092 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,31 @@ +# This file is a template, and might need editing before it works on your project. +# You can copy and paste this template into a new `.gitlab-ci.yml` file. +# You should not add this template to an existing `.gitlab-ci.yml` file by using the `include:` keyword. +# +# To contribute improvements to CI/CD templates, please follow the Development guide at: +# https://docs.gitlab.com/ee/development/cicd/templates.html +# This specific template is located at: +# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Nodejs.gitlab-ci.yml + +# Official framework image. Look for the different tagged releases at: +# https://hub.docker.com/r/library/node/tags/ +image: node:16 + + +# This folder is cached between builds +# https://docs.gitlab.com/ee/ci/yaml/index.html#cache +cache: + paths: + - frontend/node_modules/ + +pages: + stage: deploy + script: + - cd frontend + - npm i + - npm run build + artifacts: + paths: + - frontend/.output/public + rules: + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH