2016-05-30 14:46:00 +00:00
|
|
|
image: docker:git
|
|
|
|
services:
|
|
|
|
- docker:dind
|
2016-05-30 13:22:51 +00:00
|
|
|
|
|
|
|
stages:
|
2016-05-30 14:46:00 +00:00
|
|
|
- test
|
|
|
|
- release
|
2016-05-30 13:22:51 +00:00
|
|
|
|
|
|
|
variables:
|
|
|
|
CONTAINER_TEST_IMAGE: registry.gitlab.com/hosttoday/ht-docker-node:$CI_BUILD_REF_NAME
|
|
|
|
CONTAINER_RELEASE_IMAGE: registry.gitlab.com/hosttoday/ht-docker-node:latest
|
|
|
|
|
|
|
|
before_script:
|
2016-06-02 11:37:23 +00:00
|
|
|
- npmci prepare docker
|
2016-05-30 13:22:51 +00:00
|
|
|
|
|
|
|
test:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- docker version
|
|
|
|
- docker build -t $CONTAINER_TEST_IMAGE .
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
tags:
|
|
|
|
- dockerbuild
|
|
|
|
|
|
|
|
release:
|
|
|
|
stage: release
|
|
|
|
script:
|
|
|
|
- docker version
|
2016-06-01 07:43:17 +00:00
|
|
|
- docker build -t hosttoday/ht-docker-node:latest .
|
|
|
|
- docker push hosttoday/ht-docker-node:latest
|
2016-05-30 13:22:51 +00:00
|
|
|
only:
|
|
|
|
- master
|
|
|
|
tags:
|
|
|
|
- dockerbuild
|