ht-docker-dbase/.gitlab-ci.yml
2018-12-12 22:58:00 +01:00

64 lines
942 B
YAML

image: hosttoday/ht-docker-dbase
services:
- docker:dind
stages:
- build
- test
- release
- trigger
before_script:
- npm config set unsafe-perm true
- npm install -g @shipzone/npmci
- npmci docker login
build:
stage: build
script:
- npmci docker build
- npmci docker push registry.gitlab.com test
only:
- master
tags:
- docker
- lossless
- priv
test:
stage: test
script:
- npmci docker pull registry.gitlab.com test
- npmci docker test
only:
- master
tags:
- docker
- lossless
- priv
release:
stage: release
script:
# Hi
- npmci docker pull registry.gitlab.com test
- npmci docker push docker.io
- npmci docker push registry.gitlab.com
only:
- master
tags:
- docker
- lossless
- priv
trigger:
stage: trigger
script:
- npmci trigger
only:
- master
tags:
- docker
- lossless
- priv