From 1d2c268e765519f925fc393eafa6a6d17f9acfc2 Mon Sep 17 00:00:00 2001 From: Xeovalyte Date: Tue, 4 Oct 2022 14:39:55 +0000 Subject: [PATCH 1/3] 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 From 2fa4ffb33c8d740ee20079c7b89681b451c49e66 Mon Sep 17 00:00:00 2001 From: Xeovalyte Date: Tue, 4 Oct 2022 14:43:12 +0000 Subject: [PATCH 2/3] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0cd2092..76a1234 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -24,8 +24,9 @@ pages: - cd frontend - npm i - npm run build + - mv frontend/.output/public public artifacts: paths: - - frontend/.output/public + - public rules: - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH From ddaf7ab296fd20492d7d7ace2d2f09a05581c436 Mon Sep 17 00:00:00 2001 From: Xeovalyte Date: Tue, 4 Oct 2022 14:45:05 +0000 Subject: [PATCH 3/3] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 76a1234..75412c0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -24,7 +24,7 @@ pages: - cd frontend - npm i - npm run build - - mv frontend/.output/public public + - mv .output/public ../public artifacts: paths: - public