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

53 lines
808 B
YAML
Raw Normal View History

2022-06-16 13:42:39 +00:00
# gitzone ci_docker
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
2022-06-16 13:40:14 +00:00
2022-06-16 13:42:39 +00:00
cache:
paths:
- .npmci-cache/
key: "$CI_BUILD_STAGE"
2022-06-16 13:40:14 +00:00
before_script:
2022-06-16 13:42:39 +00:00
- npmci npm prepare
2022-06-16 13:40:14 +00:00
2022-06-16 13:42:39 +00:00
stages:
- test
- release
- trigger
- pages
testStable:
stage: test
2022-06-16 13:40:14 +00:00
script:
2022-06-16 13:42:39 +00:00
- npmci node install stable
- npmci npm install
- npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/
2022-06-16 13:40:14 +00:00
tags:
2022-06-16 13:42:39 +00:00
- docker
2022-06-16 13:40:14 +00:00
2022-06-16 13:42:39 +00:00
release:
image: registry.gitlab.com/hosttoday/ht-docker-dbase:npmci
services:
- docker:stable-dind
stage: release
2022-06-16 13:40:14 +00:00
script:
2022-06-16 13:42:39 +00:00
- npmci node install lts
- npmci docker login
- npmci docker build
- npmci docker test
- npmci docker push registry.gitlab.com
2022-06-16 13:40:14 +00:00
only:
2022-06-16 13:42:39 +00:00
- tags
2022-06-16 13:40:14 +00:00
tags:
2022-06-16 13:42:39 +00:00
- docker
- priv
2022-06-16 13:40:14 +00:00
trigger:
2022-06-16 13:42:39 +00:00
stage: trigger
2022-06-16 13:40:14 +00:00
script:
- npmci trigger
only:
- tags
tags:
- docker