CI script reset

This commit is contained in:
Igor Brylyov 2021-11-05 18:12:26 +03:00
parent 8f8137eb6d
commit e731b4c7fd

View file

@ -1,25 +1,19 @@
image: node:15.12-alpine3.13
image: node:latest
stages:
- test
- deploy
test:
stage: test
script:
- yarn install
- yarn build
rules:
- if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH
# allow caching for faster deployment
cache:
paths:
- node_modules/
- public/
- .cache/
pages:
stage: deploy
script:
- yarn install
- yarn build
- mv ./build ../public
- yarn install
- yarn build:gitlab
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
paths:
- public
only:
- master