2019-09-20 13:43:06 +00:00
|
|
|
# gitzone ci_docker
|
|
|
|
image: registry.gitlab.com/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: registry.gitlab.com/hosttoday/ht-docker-dbase:npmci
|
|
|
|
services:
|
|
|
|
- docker:stable-dind
|
|
|
|
stage: release
|
|
|
|
script:
|
2021-04-15 08:37:21 +00:00
|
|
|
- npmci node install lts
|
2019-09-20 13:43:06 +00:00
|
|
|
- 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
|