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

64 lines
942 B
YAML
Raw Normal View History

2016-06-05 22:06:13 +00:00
image: hosttoday/ht-docker-dbase
2016-06-02 11:59:58 +00:00
services:
- docker:dind
stages:
2016-06-07 14:10:08 +00:00
- build
- test
2016-06-02 11:59:58 +00:00
- release
2016-06-07 21:26:09 +00:00
- trigger
2016-06-02 11:59:58 +00:00
before_script:
2017-06-30 15:04:05 +00:00
- npm config set unsafe-perm true
2018-12-12 21:58:00 +00:00
- npm install -g @shipzone/npmci
2017-08-28 01:17:02 +00:00
- npmci docker login
2016-06-02 11:59:58 +00:00
2016-06-07 14:10:08 +00:00
build:
stage: build
script:
2017-08-27 15:25:53 +00:00
- npmci docker build
2017-08-28 01:17:02 +00:00
- npmci docker push registry.gitlab.com test
2016-06-07 14:10:08 +00:00
only:
- master
tags:
- docker
- lossless
2016-06-13 13:08:42 +00:00
- priv
2016-06-07 14:10:08 +00:00
test:
stage: test
script:
2017-08-28 01:17:02 +00:00
- npmci docker pull registry.gitlab.com test
2017-08-27 15:25:53 +00:00
- npmci docker test
2016-06-07 14:10:08 +00:00
only:
- master
tags:
- docker
- lossless
2016-06-13 13:08:42 +00:00
- priv
2016-06-07 14:10:08 +00:00
2016-06-02 11:59:58 +00:00
release:
stage: release
script:
2017-08-28 01:26:05 +00:00
# Hi
2017-08-28 01:17:02 +00:00
- npmci docker pull registry.gitlab.com test
- npmci docker push docker.io
2017-08-27 15:25:53 +00:00
- npmci docker push registry.gitlab.com
2016-06-02 11:59:58 +00:00
only:
- master
2016-06-07 21:26:09 +00:00
tags:
- docker
- lossless
2016-06-13 13:08:42 +00:00
- priv
2016-06-07 21:26:09 +00:00
trigger:
stage: trigger
script:
- npmci trigger
only:
- master
2016-06-02 11:59:58 +00:00
tags:
2016-06-05 03:25:53 +00:00
- docker
2016-06-13 13:08:42 +00:00
- lossless
- priv