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

53 lines
808 B
YAML
Raw Normal View History

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