wrbapp/.gitlab-ci.yml

33 lines
1.0 KiB
YAML
Raw Normal View History

2022-10-04 16:39:55 +02:00
# 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
2022-10-04 16:45:05 +02:00
- mv .output/public ../public
2022-10-04 16:39:55 +02:00
artifacts:
paths:
2022-10-04 16:43:12 +02:00
- public
2022-10-04 16:39:55 +02:00
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH