mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-26 15:40:51 +01:00
30 lines
618 B
YAML
30 lines
618 B
YAML
image: node:16.13
|
|
|
|
stages:
|
|
- install-dependencies
|
|
- build
|
|
|
|
Install Dependencies:
|
|
stage: install-dependencies
|
|
script:
|
|
- yarn install
|
|
cache:
|
|
key: ${CI_COMMIT_BRANCH}
|
|
paths:
|
|
- node_modules
|
|
|
|
Build Nitro:
|
|
stage: build
|
|
script:
|
|
- cp public/renderer-config.json.example public/renderer-config.json
|
|
- cp public/ui-config.json.example public/ui-config.json
|
|
- yarn build:prod
|
|
cache:
|
|
key: ${CI_COMMIT_BRANCH}
|
|
paths:
|
|
- node_modules
|
|
artifacts:
|
|
expire_in: 2 weeks
|
|
paths:
|
|
- build/*
|