2017-04-02 10:05:29 +00:00
|
|
|
image: hosttoday/ht-docker-dbase:npmci
|
2016-06-14 06:49:13 +00:00
|
|
|
services:
|
|
|
|
- docker:dind
|
|
|
|
|
2017-04-02 10:05:29 +00:00
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- .yarn/
|
|
|
|
key: "$CI_BUILD_STAGE"
|
|
|
|
|
2016-06-14 06:49:13 +00:00
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
- test
|
|
|
|
- release
|
|
|
|
- trigger
|
2017-04-02 10:05:29 +00:00
|
|
|
- pages
|
2016-06-14 06:49:13 +00:00
|
|
|
|
|
|
|
before_script:
|
2016-06-14 07:17:07 +00:00
|
|
|
- npmci prepare docker-gitlab
|
2016-06-14 06:49:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
build:
|
|
|
|
stage: build
|
|
|
|
script:
|
2016-06-15 22:44:12 +00:00
|
|
|
- npm install
|
2016-06-15 22:42:48 +00:00
|
|
|
- npm test
|
2016-06-14 06:49:13 +00:00
|
|
|
- npmci build docker
|
|
|
|
tags:
|
|
|
|
- lossless
|
|
|
|
- priv
|
|
|
|
|
|
|
|
|
|
|
|
test:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- npmci test docker
|
|
|
|
tags:
|
|
|
|
- lossless
|
|
|
|
- priv
|
|
|
|
|
|
|
|
release:
|
2017-04-02 10:05:29 +00:00
|
|
|
image: hosttoday/ht-docker-node:npmci
|
2016-06-14 06:49:13 +00:00
|
|
|
stage: release
|
|
|
|
script:
|
|
|
|
- npmci publish npm
|
|
|
|
only:
|
2016-06-15 22:53:26 +00:00
|
|
|
- tags
|
2016-06-14 06:49:13 +00:00
|
|
|
tags:
|
|
|
|
- lossless
|
|
|
|
- priv
|
|
|
|
|
|
|
|
trigger:
|
2017-04-02 10:05:29 +00:00
|
|
|
image: hosttoday/ht-docker-node:npmci
|
2016-06-14 06:49:13 +00:00
|
|
|
stage: trigger
|
|
|
|
script:
|
|
|
|
- npmci trigger
|
|
|
|
only:
|
2016-06-16 00:41:17 +00:00
|
|
|
- tags
|
2016-06-14 06:49:13 +00:00
|
|
|
tags:
|
|
|
|
- lossless
|
2017-04-02 10:05:29 +00:00
|
|
|
- priv
|
|
|
|
|
|
|
|
pages:
|
|
|
|
image: hosttoday/ht-docker-node:npmci
|
|
|
|
stage: pages
|
|
|
|
script:
|
|
|
|
- npmci command yarn global add npmpage
|
|
|
|
- npmci command npmpage --publish gitlab
|
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
only:
|
|
|
|
- tags
|
|
|
|
artifacts:
|
|
|
|
expire_in: 1 week
|
|
|
|
paths:
|
|
|
|
- public
|