Add ci file
This commit is contained in:
parent
9b4d24ceed
commit
1d2c268e76
31
.gitlab-ci.yml
Normal file
31
.gitlab-ci.yml
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user