fix ci
This commit is contained in:
parent
9c48d3e7ec
commit
4b0851c8a1
@ -7,6 +7,7 @@ variables:
|
|||||||
|
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
|
- buildAndTest
|
||||||
- build
|
- build
|
||||||
- test
|
- test
|
||||||
- release
|
- release
|
||||||
@ -17,11 +18,26 @@ before_script:
|
|||||||
- yarn global add npmci
|
- yarn global add npmci
|
||||||
- npmci docker login
|
- npmci docker login
|
||||||
|
|
||||||
|
buildAndTest:
|
||||||
|
stage: buildAndTest
|
||||||
|
script:
|
||||||
|
- npmci docker build
|
||||||
|
- npmci docker test
|
||||||
|
only:
|
||||||
|
refs:
|
||||||
|
- master
|
||||||
|
tags:
|
||||||
|
- lossless
|
||||||
|
- priv
|
||||||
|
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- npmci docker build
|
- npmci docker build
|
||||||
- npmci docker push registry.gitlab.com test
|
- npmci docker push registry.gitlab.com test
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
|
- triggers
|
||||||
tags:
|
tags:
|
||||||
- lossless
|
- lossless
|
||||||
- priv
|
- priv
|
||||||
@ -32,6 +48,9 @@ test:
|
|||||||
script:
|
script:
|
||||||
- npmci docker pull registry.gitlab.com test
|
- npmci docker pull registry.gitlab.com test
|
||||||
- npmci docker test
|
- npmci docker test
|
||||||
|
only:
|
||||||
|
- tags
|
||||||
|
- triggers
|
||||||
tags:
|
tags:
|
||||||
- lossless
|
- lossless
|
||||||
- priv
|
- priv
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
FROM hosttoday/ht-docker-node:npmci
|
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
|
RUN nanobox config set ci-mode true
|
||||||
|
Loading…
Reference in New Issue
Block a user