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

70 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2019-10-30 18:16:37 +00:00
# gitzone ci_docker
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
2018-01-24 15:46:15 +00:00
2019-10-30 18:16:37 +00:00
cache:
paths:
- .npmci-cache/
key: '$CI_BUILD_STAGE'
before_script:
- npmci npm prepare
2018-01-24 15:46:15 +00:00
stages:
- test
- release
- trigger
- pages
2019-10-30 18:16:37 +00:00
testStable:
stage: test
2018-01-24 15:46:15 +00:00
script:
2019-10-30 18:16:37 +00:00
- npmci npm prepare
- npmci node install stable
- npmci npm install
- npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/
2018-01-24 15:46:15 +00:00
tags:
- lossless
2019-10-30 18:16:37 +00:00
- docker
2018-01-24 15:46:15 +00:00
2019-10-30 18:16:37 +00:00
testBuild:
2018-01-24 15:46:15 +00:00
stage: test
script:
2019-10-30 18:16:37 +00:00
- npmci npm prepare
- npmci node install stable
- npmci npm install
- npmci command npm run build
coverage: /\d+.?\d+?\%\s*coverage/
2018-01-24 15:46:15 +00:00
tags:
- lossless
2019-10-30 18:16:37 +00:00
- docker
- notpriv
2018-01-24 15:46:15 +00:00
release:
2019-10-30 18:16:37 +00:00
image: registry.gitlab.com/hosttoday/ht-docker-dbase:npmci
services:
- docker:stable-dind
2018-01-24 15:46:15 +00:00
stage: release
script:
2019-10-30 18:16:37 +00:00
- npmci node install stable
- npmci docker login
- npmci docker build
- npmci docker test
2018-01-24 15:46:15 +00:00
- npmci docker push registry.gitlab.com
only:
- tags
tags:
- lossless
2019-10-30 18:16:37 +00:00
- docker
2018-01-24 15:46:15 +00:00
- priv
trigger:
stage: trigger
script:
- npmci trigger
only:
- tags
tags:
- lossless
- docker