ht-docker-dbase/.gitlab-ci.yml
2018-05-04 13:06:23 +02:00

64 lines
933 B
YAML

image: hosttoday/ht-docker-dbase
services:
- docker:dind
stages:
- build
- test
- release
- trigger
before_script:
- npm config set unsafe-perm true
- yarn global add 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