2016-06-05 22:06:13 +00:00
|
|
|
image: hosttoday/ht-docker-dbase
|
2016-06-02 11:59:58 +00:00
|
|
|
services:
|
|
|
|
- docker:dind
|
2017-05-15 12:58:58 +00:00
|
|
|
variables:
|
|
|
|
DOCKER_DRIVER: overlay
|
2016-06-02 11:59:58 +00:00
|
|
|
|
|
|
|
stages:
|
2016-06-07 14:10:08 +00:00
|
|
|
- build
|
|
|
|
- test
|
2016-06-02 11:59:58 +00:00
|
|
|
- release
|
2016-06-07 21:26:09 +00:00
|
|
|
- trigger
|
2016-06-02 11:59:58 +00:00
|
|
|
|
|
|
|
before_script:
|
2017-06-30 15:01:08 +00:00
|
|
|
- npm config unsafe-perm true
|
2017-06-30 14:36:29 +00:00
|
|
|
- npm install -g npmci
|
2016-06-07 21:39:07 +00:00
|
|
|
- npmci prepare docker
|
2016-06-02 11:59:58 +00:00
|
|
|
|
2016-06-07 14:10:08 +00:00
|
|
|
build:
|
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- npmci build docker
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
- lossless
|
2016-06-13 13:08:42 +00:00
|
|
|
- priv
|
2016-06-07 14:10:08 +00:00
|
|
|
|
|
|
|
test:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- npmci test docker
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
- lossless
|
2016-06-13 13:08:42 +00:00
|
|
|
- priv
|
2016-06-07 14:10:08 +00:00
|
|
|
|
2016-06-02 11:59:58 +00:00
|
|
|
release:
|
|
|
|
stage: release
|
|
|
|
script:
|
2016-06-07 14:10:08 +00:00
|
|
|
- npmci publish docker
|
2016-06-02 11:59:58 +00:00
|
|
|
only:
|
|
|
|
- master
|
2016-06-07 21:26:09 +00:00
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
- lossless
|
2016-06-13 13:08:42 +00:00
|
|
|
- priv
|
2016-06-07 21:26:09 +00:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
stage: trigger
|
|
|
|
script:
|
|
|
|
- npmci trigger
|
|
|
|
only:
|
|
|
|
- master
|
2016-06-02 11:59:58 +00:00
|
|
|
tags:
|
2016-06-05 03:25:53 +00:00
|
|
|
- docker
|
2016-06-13 13:08:42 +00:00
|
|
|
- lossless
|
|
|
|
- priv
|