public-gateway-cacher/.gitlab-ci.yml

39 lines
494 B
YAML
Raw Permalink Normal View History

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:
2019-12-03 06:02:57 +00:00
key:
files:
- package.json
- yarn.lock
2019-11-29 02:20:50 +00:00
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-12-03 06:02:57 +00:00
- public
2019-11-29 02:20:50 +00:00
only:
- master
2019-11-29 03:16:33 +00:00
- pages