2016-06-02 17:12:47 +00:00
|
|
|
image: docker:git
|
2016-06-02 11:59:58 +00:00
|
|
|
services:
|
|
|
|
- docker:dind
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- release
|
|
|
|
|
|
|
|
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 17:14:57 +00:00
|
|
|
- docker login -u $DOCKERU -p $DOCKERP
|
2016-06-02 11:59:58 +00:00
|
|
|
|
|
|
|
release:
|
|
|
|
stage: release
|
|
|
|
script:
|
|
|
|
- docker version
|
|
|
|
- docker build -t hosttoday/ht-docker-dbase:latest .
|
|
|
|
- docker push hosttoday/ht-docker-dbase:latest
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
tags:
|
|
|
|
- dockerbuild
|