2017-04-02 22:02:16 +02:00
|
|
|
# gitzone docker
|
2017-06-30 19:23:26 +02: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
|
2016-05-30 13:22:51 +00:00
|
|
|
|
|
|
|
stages:
|
2017-09-13 21:59:30 +02:00
|
|
|
- buildAndTest
|
2018-04-10 13:47:18 +02:00
|
|
|
- triggerPagesVerify
|
2016-05-30 13:22:51 +00:00
|
|
|
|
|
|
|
before_script:
|
2018-05-27 13:21:49 +02:00
|
|
|
- npm install -g @shipzone/npmci
|
2017-08-28 02:25:05 +02:00
|
|
|
- npmci docker login
|
2016-05-30 13:22:51 +00:00
|
|
|
|
2018-04-09 18:47:28 +02:00
|
|
|
buildTest:
|
2017-09-13 21:59:30 +02:00
|
|
|
stage: buildAndTest
|
|
|
|
script:
|
|
|
|
- npmci docker build
|
|
|
|
- npmci docker test
|
2017-09-13 22:02:14 +02:00
|
|
|
except:
|
|
|
|
- tags
|
2017-10-11 18:16:11 +02:00
|
|
|
- triggers
|
2017-09-13 21:59:30 +02:00
|
|
|
tags:
|
|
|
|
- lossless
|
|
|
|
- priv
|
|
|
|
|
2018-12-24 01:53:51 +01:00
|
|
|
buildTestRelease:
|
2018-04-09 18:47:28 +02:00
|
|
|
stage: buildAndTest
|
2016-06-04 03:01:23 +02:00
|
|
|
script:
|
2017-08-27 14:36:48 +00:00
|
|
|
- npmci docker build
|
|
|
|
- npmci docker test
|
2018-04-09 18:47:28 +02:00
|
|
|
- npmci docker push registry.gitlab.com test
|
2017-08-28 03:17:22 +02:00
|
|
|
- npmci docker push registry.gitlab.com
|
2018-04-09 18:47:28 +02:00
|
|
|
- npmci docker push docker.io
|
2016-05-30 13:22:51 +00:00
|
|
|
only:
|
2016-08-31 00:15:38 +02:00
|
|
|
- tags
|
2016-08-31 12:40:13 +02:00
|
|
|
- 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:
|
2018-04-10 13:47:18 +02:00
|
|
|
stage: triggerPagesVerify
|
2016-06-05 04:36:03 +00:00
|
|
|
script:
|
|
|
|
- npmci trigger
|
|
|
|
only:
|
2016-08-31 00:15:38 +02:00
|
|
|
- tags
|
2016-08-31 12:40:13 +02:00
|
|
|
- triggers
|
2016-05-30 13:22:51 +00:00
|
|
|
tags:
|
2016-06-13 13:06:55 +00:00
|
|
|
- lossless
|
|
|
|
- priv
|
2017-04-02 22:02:16 +02:00
|
|
|
|
|
|
|
pages:
|
2018-04-10 13:47:18 +02:00
|
|
|
stage: triggerPagesVerify
|
2017-04-02 23:00:10 +02:00
|
|
|
before_script:
|
|
|
|
- 'npmci -v'
|
2017-04-02 22:02:16 +02:00
|
|
|
image: hosttoday/ht-docker-node:npmci
|
|
|
|
script:
|
2018-11-26 20:36:03 +01:00
|
|
|
# - npmci command npm install -g npmpage
|
|
|
|
# - npmci command npmpage
|
|
|
|
- echo "nothing here yet until @gitzone/npmpage is ready!"
|
2017-04-02 22:02:16 +02:00
|
|
|
only:
|
|
|
|
- tags
|
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
artifacts:
|
|
|
|
expire_in: 1 week
|
|
|
|
paths:
|
|
|
|
- public
|
2018-04-10 13:44:54 +02:00
|
|
|
|
|
|
|
verify:
|
2018-04-10 13:47:18 +02:00
|
|
|
stage: triggerPagesVerify
|
2018-04-10 13:44:54 +02:00
|
|
|
script:
|
|
|
|
- npmci docker pull registry.gitlab.com test
|
|
|
|
only:
|
|
|
|
- tags
|
|
|
|
tags:
|
|
|
|
- docker
|