This commit is contained in:
Philipp Kunz 2017-09-13 21:59:30 +02:00
parent 9c48d3e7ec
commit 4b0851c8a1
2 changed files with 20 additions and 1 deletions

View File

@ -7,6 +7,7 @@ variables:
stages:
- buildAndTest
- build
- test
- release
@ -17,11 +18,26 @@ before_script:
- yarn global add npmci
- npmci docker login
buildAndTest:
stage: buildAndTest
script:
- npmci docker build
- npmci docker test
only:
refs:
- master
tags:
- lossless
- priv
build:
stage: build
script:
- npmci docker build
- npmci docker push registry.gitlab.com test
only:
- tags
- triggers
tags:
- lossless
- priv
@ -32,6 +48,9 @@ test:
script:
- npmci docker pull registry.gitlab.com test
- npmci docker test
only:
- tags
- triggers
tags:
- lossless
- priv

View File

@ -1,3 +1,3 @@
FROM hosttoday/ht-docker-node:npmci
RUN sudo bash -c "$(curl -fsSL https://s3.amazonaws.com/tools.nanobox.io/bootstrap/ci.sh)"
RUN bash -c "$(curl -fsSL https://s3.amazonaws.com/tools.nanobox.io/bootstrap/ci.sh)"
RUN nanobox config set ci-mode true