2019-11-29 02:20:50 +00:00
|
|
|
image: node:13
|
|
|
|
|
|
|
|
before_script:
|
2019-11-29 08:14:21 +00:00
|
|
|
- yarn
|
2019-11-29 02:20:50 +00:00
|
|
|
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- node_modules
|
|
|
|
|
|
|
|
build:
|
|
|
|
stage: build
|
|
|
|
script:
|
2019-11-29 08:14:21 +00:00
|
|
|
- yarn run build:prod
|
2019-11-29 02:20:50 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2019-11-29 03:10:55 +00:00
|
|
|
- dist/angular
|
2019-11-29 02:20:50 +00:00
|
|
|
|
|
|
|
test:
|
|
|
|
stage: test
|
|
|
|
script:
|
2019-11-29 08:14:21 +00:00
|
|
|
- yarn run lint
|
2019-11-29 02:20:50 +00:00
|
|
|
|
2019-11-29 03:16:33 +00:00
|
|
|
pages:
|
2019-11-29 02:20:50 +00:00
|
|
|
stage: deploy
|
|
|
|
script:
|
2019-11-29 08:14:21 +00:00
|
|
|
- yarn run build:gitlab
|
2019-11-29 02:20:50 +00:00
|
|
|
- mv dist/angular public
|
|
|
|
- cp public/index.html public/404.html
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2019-11-29 03:10:55 +00:00
|
|
|
- dist/public
|
2019-11-29 02:20:50 +00:00
|
|
|
only:
|
|
|
|
- master
|
2019-11-29 03:16:33 +00:00
|
|
|
- pages
|