53 lines
764 B
YAML
53 lines
764 B
YAML
|
# gitzone ci_docker
|
||
|
image: hosttoday/ht-docker-node:npmci
|
||
|
|
||
|
cache:
|
||
|
paths:
|
||
|
- .npmci-cache/
|
||
|
key: "$CI_BUILD_STAGE"
|
||
|
|
||
|
before_script:
|
||
|
- npmci npm prepare
|
||
|
|
||
|
stages:
|
||
|
- test
|
||
|
- release
|
||
|
- trigger
|
||
|
- pages
|
||
|
|
||
|
testSTABLE:
|
||
|
stage: test
|
||
|
script:
|
||
|
- npmci node install stable
|
||
|
- npmci npm install
|
||
|
- npmci npm test
|
||
|
coverage: /\d+.?\d+?\%\s*coverage/
|
||
|
tags:
|
||
|
- docker
|
||
|
|
||
|
release:
|
||
|
image: hosttoday/ht-docker-dbase:npmci
|
||
|
services:
|
||
|
- docker:dind
|
||
|
stage: release
|
||
|
script:
|
||
|
- npmci node install stable
|
||
|
- npmci docker login
|
||
|
- npmci docker build
|
||
|
- npmci docker test
|
||
|
- npmci docker push registry.gitlab.com
|
||
|
only:
|
||
|
- tags
|
||
|
tags:
|
||
|
- docker
|
||
|
- priv
|
||
|
|
||
|
trigger:
|
||
|
stage: trigger
|
||
|
script:
|
||
|
- npmci trigger
|
||
|
only:
|
||
|
- tags
|
||
|
tags:
|
||
|
- docker
|