ht-docker-node/.gitlab-ci.yml

33 lines
656 B
YAML
Raw Normal View History

2016-05-30 14:16:40 +00:00
image: gitlab/dind
2016-05-30 13:22:51 +00:00
stages:
- test
- 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:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com
test:
stage: test
script:
- docker version
- docker build -t $CONTAINER_TEST_IMAGE .
only:
- master
tags:
- dockerbuild
release:
stage: release
script:
- docker version
- docker build -t $CONTAINER_RELEASE_IMAGE .
- docker push $CONTAINER_RELEASE_IMAGE
only:
- master
tags:
- dockerbuild