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

62 lines
1.4 KiB
YAML
Raw Normal View History

2016-06-02 15:46:40 +00:00
image: hosttoday/ht-docker-dbase
2016-05-30 14:46:00 +00:00
services:
- docker:dind
2016-05-30 13:22:51 +00:00
stages:
2016-06-04 01:01:23 +00:00
- build
- buildtags
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 17:08:12 +00:00
- npm uninstall -g npmci
- npm install -g npmci
2016-06-02 15:46:40 +00:00
- npmci prepare docker
2016-05-30 13:22:51 +00:00
2016-06-04 01:01:23 +00:00
buildBASE:
2016-06-04 01:03:00 +00:00
stage: build
2016-06-04 01:01:23 +00:00
script:
- docker build -t hosttoday/ht-docker-node:latest .
- docker push hosttoday/ht-docker-node:latest
tags:
- dockerbuild
buildTAGS:
2016-06-04 01:03:00 +00:00
stage: buildtags
2016-06-04 01:01:23 +00:00
script:
2016-06-04 01:19:20 +00:00
- docker build -t hosttoday/ht-docker-node:lts -f Dockerfile_lts .
2016-06-04 01:01:23 +00:00
- docker push hosttoday/ht-docker-node:lts
2016-06-04 01:19:20 +00:00
- docker build -t hosttoday/ht-docker-node:stable -f Dockerfile_stable .
2016-06-04 01:01:23 +00:00
- docker push hosttoday/ht-docker-node:stable
2016-06-04 01:19:20 +00:00
- docker build -t hosttoday/ht-docker-node:npmci -f Dockerfile_npmci .
2016-06-04 01:01:23 +00:00
- docker push hosttoday/ht-docker-node:npmci
2016-06-04 01:19:20 +00:00
- docker build -t hosttoday/ht-docker-node:npmts -f Dockerfile_npmts .
2016-06-04 01:01:23 +00:00
- docker push hosttoday/ht-docker-node:npmts
2016-06-04 01:19:20 +00:00
- docker build -t hosttoday/ht-docker-node:npmpage -f Dockerfile_npmpage .
2016-06-04 01:01:23 +00:00
- docker push hosttoday/ht-docker-node:npmpage
tags:
- dockerbuild
2016-05-30 13:22:51 +00:00
test:
stage: test
script:
- docker version
only:
- master
tags:
- dockerbuild
release:
stage: release
script:
- docker version
only:
- master
tags:
- dockerbuild