ht-docker-node/.gitlab-ci.yml

53 lines
808 B
YAML
Raw Normal View History

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-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
2019-08-27 17:44:57 +00:00
testStable:
2019-06-08 19:36:23 +00:00
stage: test
2017-09-13 19:59:30 +00:00
script:
2019-08-27 17:44:57 +00:00
- npmci node install stable
2019-06-08 19:36:23 +00:00
- 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:
2019-06-19 10:03:19 +00:00
image: registry.gitlab.com/hosttoday/ht-docker-dbase:npmci
2019-06-08 19:36:23 +00:00
services:
2019-08-27 17:44:57 +00:00
- docker:stable-dind
2019-06-08 19:36:23 +00:00
stage: release
2016-06-04 01:01:23 +00:00
script:
2019-07-17 16:01:57 +00:00
- npmci node install lts
2019-06-08 19:36:23 +00:00
- npmci docker login
- npmci docker build
- npmci docker test
2019-08-23 15:25:47 +00:00
- npmci docker push registry.gitlab.com
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