2019-06-08 19:36:23 +00:00
|
|
|
# gitzone ci_docker
|
2019-06-19 09:04:44 +00:00
|
|
|
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
|
2016-05-30 13:22:51 +00:00
|
|
|
|
2019-06-08 19:36:23 +00:00
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- .npmci-cache/
|
|
|
|
key: "$CI_BUILD_STAGE"
|
2016-05-30 13:22:51 +00:00
|
|
|
|
|
|
|
before_script:
|
2019-06-19 09:15:19 +00:00
|
|
|
- npm install -g @shipzone/npmci
|
2019-06-08 19:36:23 +00:00
|
|
|
- npmci npm prepare
|
2016-05-30 13:22:51 +00:00
|
|
|
|
2019-06-08 19:36:23 +00:00
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
- release
|
|
|
|
- trigger
|
|
|
|
- pages
|
|
|
|
|
|
|
|
testSTABLE:
|
|
|
|
stage: test
|
2017-09-13 19:59:30 +00:00
|
|
|
script:
|
2019-06-08 19:36:23 +00:00
|
|
|
- npmci node install stable
|
|
|
|
- npmci npm install
|
|
|
|
- npmci npm test
|
|
|
|
coverage: /\d+.?\d+?\%\s*coverage/
|
2017-09-13 19:59:30 +00:00
|
|
|
tags:
|
2019-06-08 19:36:23 +00:00
|
|
|
- docker
|
2017-09-13 19:59:30 +00:00
|
|
|
|
2019-06-08 19:36:23 +00:00
|
|
|
release:
|
|
|
|
image: hosttoday/ht-docker-dbase:npmci
|
|
|
|
services:
|
|
|
|
- docker:dind
|
|
|
|
stage: release
|
2016-06-04 01:01:23 +00:00
|
|
|
script:
|
2019-06-08 19:36:23 +00:00
|
|
|
- npmci node install stable
|
|
|
|
- npmci docker login
|
|
|
|
- npmci docker build
|
|
|
|
- npmci docker test
|
2019-06-19 09:04:44 +00:00
|
|
|
- npmci docker push
|
2016-05-30 13:22:51 +00:00
|
|
|
only:
|
2019-06-08 19:36:23 +00:00
|
|
|
- tags
|
2016-06-05 04:36:03 +00:00
|
|
|
tags:
|
2019-06-08 19:36:23 +00:00
|
|
|
- docker
|
|
|
|
- priv
|
2016-06-05 04:36:03 +00:00
|
|
|
|
|
|
|
trigger:
|
2019-06-08 19:36:23 +00:00
|
|
|
stage: trigger
|
2016-06-05 04:36:03 +00:00
|
|
|
script:
|
|
|
|
- npmci trigger
|
2017-04-02 20:02:16 +00:00
|
|
|
only:
|
|
|
|
- tags
|
|
|
|
tags:
|
|
|
|
- docker
|