fix ci
This commit is contained in:
parent
9c48d3e7ec
commit
4b0851c8a1
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user