ht-docker-dbase/.gitlab-ci.yml
2017-08-28 01:17:02 +00:00

65 lines
960 B
YAML

image: hosttoday/ht-docker-dbase
services:
- docker:dind
variables:
DOCKER_DRIVER: overlay
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:
- 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