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

98 lines
1.4 KiB
YAML
Raw Normal View History

2017-04-02 20:02:16 +00:00
# gitzone docker
2017-06-30 17:23:26 +00:00
image: hosttoday/ht-docker-dbase:npmci
2016-05-30 14:46:00 +00:00
services:
2017-08-26 08:57:50 +00:00
- docker:dind
2017-05-15 16:39:32 +00:00
variables:
DOCKER_DRIVER: overlay
2016-05-30 13:22:51 +00:00
stages:
2017-09-13 19:59:30 +00:00
- buildAndTest
2016-06-04 01:01:23 +00:00
- build
2016-05-30 14:46:00 +00:00
- test
- release
2016-06-05 04:36:03 +00:00
- trigger
2017-04-02 20:02:16 +00:00
- pages
2016-05-30 13:22:51 +00:00
before_script:
2017-08-25 22:14:26 +00:00
- yarn global add npmci
2017-08-28 00:25:05 +00:00
- npmci docker login
2016-05-30 13:22:51 +00:00
2017-09-13 19:59:30 +00:00
buildAndTest:
stage: buildAndTest
script:
- npmci docker build
- npmci docker test
only:
refs:
- master
tags:
- lossless
- priv
2016-06-05 05:07:38 +00:00
build:
2016-06-04 01:03:00 +00:00
stage: build
2016-06-04 01:01:23 +00:00
script:
2017-08-27 14:36:48 +00:00
- npmci docker build
2017-08-27 23:43:39 +00:00
- npmci docker push registry.gitlab.com test
2017-09-13 19:59:30 +00:00
only:
- tags
- triggers
2016-06-04 01:01:23 +00:00
tags:
2016-06-04 22:16:58 +00:00
- lossless
2016-06-13 13:06:55 +00:00
- priv
2016-06-04 01:01:23 +00:00
2016-05-30 13:22:51 +00:00
test:
stage: test
script:
2017-08-27 23:43:39 +00:00
- npmci docker pull registry.gitlab.com test
2017-08-27 14:36:48 +00:00
- npmci docker test
2017-09-13 19:59:30 +00:00
only:
- tags
- triggers
2016-05-30 13:22:51 +00:00
tags:
2016-06-04 22:16:58 +00:00
- lossless
2016-06-13 13:06:55 +00:00
- priv
2016-05-30 13:22:51 +00:00
release:
stage: release
script:
2017-08-27 23:43:39 +00:00
- npmci docker pull registry.gitlab.com test
- npmci docker push docker.io
2017-08-28 01:17:22 +00:00
- npmci docker push registry.gitlab.com
2016-05-30 13:22:51 +00:00
only:
2016-08-30 22:15:38 +00:00
- tags
- triggers
2016-06-05 04:36:03 +00:00
tags:
- lossless
2016-06-13 13:06:55 +00:00
- priv
2016-06-05 04:36:03 +00:00
trigger:
stage: trigger
script:
- npmci trigger
only:
2016-08-30 22:15:38 +00:00
- tags
- triggers
2016-05-30 13:22:51 +00:00
tags:
2016-06-13 13:06:55 +00:00
- lossless
- priv
2017-04-02 20:02:16 +00:00
pages:
2017-04-02 21:00:10 +00:00
before_script:
- 'npmci -v'
2017-04-02 20:02:16 +00:00
image: hosttoday/ht-docker-node:npmci
stage: pages
script:
- npmci command yarn global add npmpage
- npmci command npmpage
only:
- tags
tags:
- docker
artifacts:
expire_in: 1 week
paths:
- public